<?php
require_once( "pb_proto_common.php" );
class ContentItem_ActionType extends PBEnum
{
  const CREATE  = 1;
  const REPLACE  = 2;
  const UPDATE  = 3;
  const DELETE  = 4;
  const ITEM_GET  = 5;
  const ITEM_DETAIL_GET  = 6;
  const NEWSFEED_GET  = 7;
  const CONTENT_ACTIVITY_GET  = 8;
  const TAG_SEARCH  = 9;
  const USER_SEARCH  = 10;
  const SOCIALCHANNEL_PUBLISH  = 11;
  const LOCATION_SEARCH  = 12;
  const MOVIE_SHOWTIME_GET  = 13;
  const PRICE_CRUD  = 22;
  const PRICE_LEVEL_GET  = 21;
  const PUBLIC_PEOPLE_SEARCH  = 14;
  const USER_POST_GET  = 15;
  const USER_CHECK_IN  = 16;
  const CONTENT_TRENDING  = 17;
  const NEARBY_PLACE_GET  = 18;
  const ITEM_FILTER  = 19;
  const TRENDING_SUGGESTION  = 20;
  const COMIC_BOOKMARK_MANAGEMENT  = 23;
  const SERVICE_MANAGER  = 24;
  const CRAWL_URI_MANAGER  = 25;
  const RELATED_TAG_GET  = 26;
  const ARTICLE_EXISTANCE_CHECK  = 27;
  const OPEN_GRAPH_GET  = 28;
  const TRENDING_BY_CONTENT_TYPE  = 29;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			1 => "CREATE",
			2 => "REPLACE",
			3 => "UPDATE",
			4 => "DELETE",
			5 => "ITEM_GET",
			6 => "ITEM_DETAIL_GET",
			7 => "NEWSFEED_GET",
			8 => "CONTENT_ACTIVITY_GET",
			9 => "TAG_SEARCH",
			10 => "USER_SEARCH",
			11 => "SOCIALCHANNEL_PUBLISH",
			12 => "LOCATION_SEARCH",
			13 => "MOVIE_SHOWTIME_GET",
			22 => "PRICE_CRUD",
			21 => "PRICE_LEVEL_GET",
			14 => "PUBLIC_PEOPLE_SEARCH",
			15 => "USER_POST_GET",
			16 => "USER_CHECK_IN",
			17 => "CONTENT_TRENDING",
			18 => "NEARBY_PLACE_GET",
			19 => "ITEM_FILTER",
			20 => "TRENDING_SUGGESTION",
			23 => "COMIC_BOOKMARK_MANAGEMENT",
			24 => "SERVICE_MANAGER",
			25 => "CRAWL_URI_MANAGER",
			26 => "RELATED_TAG_GET",
			27 => "ARTICLE_EXISTANCE_CHECK",
			28 => "OPEN_GRAPH_GET",
			29 => "TRENDING_BY_CONTENT_TYPE");
   }
}
class ContentItem extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["ContentItem"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["ContentItem"]["1"] = "uuid";
    self::$fields["ContentItem"]["2"] = "ContentItem_ActionType";
    $this->values["2"] = "";
    self::$fieldNames["ContentItem"]["2"] = "action_type";
    self::$fields["ContentItem"]["3"] = "PBBytes";
    $this->values["3"] = "";
    self::$fieldNames["ContentItem"]["3"] = "message";
    self::$fields["ContentItem"]["4"] = "PBBool";
    $this->values["4"] = "";
    self::$fieldNames["ContentItem"]["4"] = "undefined_action_type";
    self::$fields["ContentItem"]["5"] = "PBInt";
    $this->values["5"] = "";
    self::$fieldNames["ContentItem"]["5"] = "timestamp";
    self::$fields["ContentItem"]["6"] = "ZipAlgorithm";
    $this->values["6"] = "";
    self::$fieldNames["ContentItem"]["6"] = "zip";
  }
  function uuid()
  {
    return $this->_get_value("1");
  }
  function set_uuid($value)
  {
    return $this->_set_value("1", $value);
  }
  function action_type()
  {
    return $this->_get_value("2");
  }
  function set_action_type($value)
  {
    return $this->_set_value("2", $value);
  }
  function action_type_string()
  {
    return $this->values["2"]->get_description();
  }
  function message()
  {
    return $this->_get_value("3");
  }
  function set_message($value)
  {
    return $this->_set_value("3", $value);
  }
  function undefined_action_type()
  {
    return $this->_get_value("4");
  }
  function set_undefined_action_type($value)
  {
    return $this->_set_value("4", $value);
  }
  function timestamp()
  {
    return $this->_get_value("5");
  }
  function set_timestamp($value)
  {
    return $this->_set_value("5", $value);
  }
  function zip()
  {
    return $this->_get_value("6");
  }
  function set_zip($value)
  {
    return $this->_set_value("6", $value);
  }
  function zip_string()
  {
    return $this->values["6"]->get_description();
  }
}
class Item extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["Item"]["1"] = "ItemType";
    $this->values["1"] = "";
    self::$fieldNames["Item"]["1"] = "type";
    self::$fields["Item"]["2"] = "PBBytes";
    $this->values["2"] = "";
    self::$fieldNames["Item"]["2"] = "content";
    self::$fields["Item"]["3"] = "PBBool";
    $this->values["3"] = "";
    $this->values["3"] = new PBBool();
    $this->values["3"]->value = false;
    self::$fieldNames["Item"]["3"] = "liked";
    self::$fields["Item"]["11"] = "PBBool";
    $this->values["11"] = "";
    $this->values["11"] = new PBBool();
    $this->values["11"]->value = false;
    self::$fieldNames["Item"]["11"] = "subscribed";
    self::$fields["Item"]["16"] = "PBBool";
    $this->values["16"] = "";
    $this->values["16"] = new PBBool();
    $this->values["16"]->value = false;
    self::$fieldNames["Item"]["16"] = "shared";
    self::$fields["Item"]["17"] = "PBBool";
    $this->values["17"] = "";
    $this->values["17"] = new PBBool();
    $this->values["17"]->value = false;
    self::$fieldNames["Item"]["17"] = "followed";
    self::$fields["Item"]["4"] = "PBInt";
    $this->values["4"] = "";
    $this->values["4"] = new PBInt();
    $this->values["4"]->value = 0;
    self::$fieldNames["Item"]["4"] = "num_likes";
    self::$fields["Item"]["12"] = "ProfileLite";
    $this->values["12"] = array();
    self::$fieldNames["Item"]["12"] = "likers";
    self::$fields["Item"]["5"] = "PBInt";
    $this->values["5"] = "";
    $this->values["5"] = new PBInt();
    $this->values["5"]->value = 0;
    self::$fieldNames["Item"]["5"] = "num_comments";
    self::$fields["Item"]["13"] = "ProfileLite";
    $this->values["13"] = array();
    self::$fieldNames["Item"]["13"] = "commenters";
    self::$fields["Item"]["6"] = "PBInt";
    $this->values["6"] = "";
    $this->values["6"] = new PBInt();
    $this->values["6"]->value = 0;
    self::$fieldNames["Item"]["6"] = "num_shares";
    self::$fields["Item"]["14"] = "ProfileLite";
    $this->values["14"] = array();
    self::$fieldNames["Item"]["14"] = "sharers";
    self::$fields["Item"]["7"] = "PBInt";
    $this->values["7"] = "";
    $this->values["7"] = new PBInt();
    $this->values["7"]->value = 0;
    self::$fieldNames["Item"]["7"] = "num_views";
    self::$fields["Item"]["15"] = "ProfileLite";
    $this->values["15"] = array();
    self::$fieldNames["Item"]["15"] = "viewers";
    self::$fields["Item"]["8"] = "PBInt";
    $this->values["8"] = "";
    $this->values["8"] = new PBInt();
    $this->values["8"]->value = 0;
    self::$fieldNames["Item"]["8"] = "num_joins";
    self::$fields["Item"]["9"] = "ProfileLite";
    $this->values["9"] = "";
    self::$fieldNames["Item"]["9"] = "creator";
    self::$fields["Item"]["18"] = "PBInt";
    $this->values["18"] = "";
    self::$fieldNames["Item"]["18"] = "num_subscribes";
    self::$fields["Item"]["19"] = "ProfileLite";
    $this->values["19"] = array();
    self::$fieldNames["Item"]["19"] = "subscribers";
    self::$fields["Item"]["10"] = "SocialChannelShare";
    $this->values["10"] = array();
    self::$fieldNames["Item"]["10"] = "channel_share_info";
  }
  function type()
  {
    return $this->_get_value("1");
  }
  function set_type($value)
  {
    return $this->_set_value("1", $value);
  }
  function type_string()
  {
    return $this->values["1"]->get_description();
  }
  function content()
  {
    return $this->_get_value("2");
  }
  function set_content($value)
  {
    return $this->_set_value("2", $value);
  }
  function liked()
  {
    return $this->_get_value("3");
  }
  function set_liked($value)
  {
    return $this->_set_value("3", $value);
  }
  function subscribed()
  {
    return $this->_get_value("11");
  }
  function set_subscribed($value)
  {
    return $this->_set_value("11", $value);
  }
  function shared()
  {
    return $this->_get_value("16");
  }
  function set_shared($value)
  {
    return $this->_set_value("16", $value);
  }
  function followed()
  {
    return $this->_get_value("17");
  }
  function set_followed($value)
  {
    return $this->_set_value("17", $value);
  }
  function num_likes()
  {
    return $this->_get_value("4");
  }
  function set_num_likes($value)
  {
    return $this->_set_value("4", $value);
  }
  function likers($offset)
  {
    return $this->_get_arr_value("12", $offset);
  }
  function add_likers()
  {
    return $this->_add_arr_value("12");
  }
  function set_likers($index, $value)
  {
    $this->_set_arr_value("12", $index, $value);
  }
  function set_all_likerss($values)
  {
    return $this->_set_arr_values("12", $values);
  }
  function remove_last_likers()
  {
    $this->_remove_last_arr_value("12");
  }
  function likerss_size()
  {
    return $this->_get_arr_size("12");
  }
  function get_likerss()
  {
    return $this->_get_value("12");
  }
  function num_comments()
  {
    return $this->_get_value("5");
  }
  function set_num_comments($value)
  {
    return $this->_set_value("5", $value);
  }
  function commenters($offset)
  {
    return $this->_get_arr_value("13", $offset);
  }
  function add_commenters()
  {
    return $this->_add_arr_value("13");
  }
  function set_commenters($index, $value)
  {
    $this->_set_arr_value("13", $index, $value);
  }
  function set_all_commenterss($values)
  {
    return $this->_set_arr_values("13", $values);
  }
  function remove_last_commenters()
  {
    $this->_remove_last_arr_value("13");
  }
  function commenterss_size()
  {
    return $this->_get_arr_size("13");
  }
  function get_commenterss()
  {
    return $this->_get_value("13");
  }
  function num_shares()
  {
    return $this->_get_value("6");
  }
  function set_num_shares($value)
  {
    return $this->_set_value("6", $value);
  }
  function sharers($offset)
  {
    return $this->_get_arr_value("14", $offset);
  }
  function add_sharers()
  {
    return $this->_add_arr_value("14");
  }
  function set_sharers($index, $value)
  {
    $this->_set_arr_value("14", $index, $value);
  }
  function set_all_sharerss($values)
  {
    return $this->_set_arr_values("14", $values);
  }
  function remove_last_sharers()
  {
    $this->_remove_last_arr_value("14");
  }
  function sharerss_size()
  {
    return $this->_get_arr_size("14");
  }
  function get_sharerss()
  {
    return $this->_get_value("14");
  }
  function num_views()
  {
    return $this->_get_value("7");
  }
  function set_num_views($value)
  {
    return $this->_set_value("7", $value);
  }
  function viewers($offset)
  {
    return $this->_get_arr_value("15", $offset);
  }
  function add_viewers()
  {
    return $this->_add_arr_value("15");
  }
  function set_viewers($index, $value)
  {
    $this->_set_arr_value("15", $index, $value);
  }
  function set_all_viewerss($values)
  {
    return $this->_set_arr_values("15", $values);
  }
  function remove_last_viewers()
  {
    $this->_remove_last_arr_value("15");
  }
  function viewerss_size()
  {
    return $this->_get_arr_size("15");
  }
  function get_viewerss()
  {
    return $this->_get_value("15");
  }
  function num_joins()
  {
    return $this->_get_value("8");
  }
  function set_num_joins($value)
  {
    return $this->_set_value("8", $value);
  }
  function creator()
  {
    return $this->_get_value("9");
  }
  function set_creator($value)
  {
    return $this->_set_value("9", $value);
  }
  function num_subscribes()
  {
    return $this->_get_value("18");
  }
  function set_num_subscribes($value)
  {
    return $this->_set_value("18", $value);
  }
  function subscribers($offset)
  {
    return $this->_get_arr_value("19", $offset);
  }
  function add_subscribers()
  {
    return $this->_add_arr_value("19");
  }
  function set_subscribers($index, $value)
  {
    $this->_set_arr_value("19", $index, $value);
  }
  function set_all_subscriberss($values)
  {
    return $this->_set_arr_values("19", $values);
  }
  function remove_last_subscribers()
  {
    $this->_remove_last_arr_value("19");
  }
  function subscriberss_size()
  {
    return $this->_get_arr_size("19");
  }
  function get_subscriberss()
  {
    return $this->_get_value("19");
  }
  function channel_share_info($offset)
  {
    return $this->_get_arr_value("10", $offset);
  }
  function add_channel_share_info()
  {
    return $this->_add_arr_value("10");
  }
  function set_channel_share_info($index, $value)
  {
    $this->_set_arr_value("10", $index, $value);
  }
  function set_all_channel_share_infos($values)
  {
    return $this->_set_arr_values("10", $values);
  }
  function remove_last_channel_share_info()
  {
    $this->_remove_last_arr_value("10");
  }
  function channel_share_infos_size()
  {
    return $this->_get_arr_size("10");
  }
  function get_channel_share_infos()
  {
    return $this->_get_value("10");
  }
}
class SocialChannelPublishRequest_PublishType extends PBEnum
{
  const SHARE  = 0;
  const POST  = 1;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "SHARE",
			1 => "POST");
   }
}
class SocialChannelPublishRequest extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["SocialChannelPublishRequest"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["SocialChannelPublishRequest"]["1"] = "uid";
    self::$fields["SocialChannelPublishRequest"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["SocialChannelPublishRequest"]["2"] = "session_key";
    self::$fields["SocialChannelPublishRequest"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["SocialChannelPublishRequest"]["3"] = "content_id";
    self::$fields["SocialChannelPublishRequest"]["8"] = "SocialChannelPublishRequest_PublishType";
    $this->values["8"] = "";
    self::$fieldNames["SocialChannelPublishRequest"]["8"] = "type";
    self::$fields["SocialChannelPublishRequest"]["4"] = "SocialChannelType";
    $this->values["4"] = "";
    self::$fieldNames["SocialChannelPublishRequest"]["4"] = "channel";
    self::$fields["SocialChannelPublishRequest"]["5"] = "PBString";
    $this->values["5"] = "";
    self::$fieldNames["SocialChannelPublishRequest"]["5"] = "message2share";
    self::$fields["SocialChannelPublishRequest"]["7"] = "PBString";
    $this->values["7"] = "";
    self::$fieldNames["SocialChannelPublishRequest"]["7"] = "photo_uri";
    self::$fields["SocialChannelPublishRequest"]["9"] = "AddressType";
    $this->values["9"] = array();
    self::$fieldNames["SocialChannelPublishRequest"]["9"] = "address_type";
    self::$fields["SocialChannelPublishRequest"]["10"] = "Group";
    $this->values["10"] = array();
    self::$fieldNames["SocialChannelPublishRequest"]["10"] = "group";
  }
  function uid()
  {
    return $this->_get_value("1");
  }
  function set_uid($value)
  {
    return $this->_set_value("1", $value);
  }
  function session_key()
  {
    return $this->_get_value("2");
  }
  function set_session_key($value)
  {
    return $this->_set_value("2", $value);
  }
  function content_id()
  {
    return $this->_get_value("3");
  }
  function set_content_id($value)
  {
    return $this->_set_value("3", $value);
  }
  function type()
  {
    return $this->_get_value("8");
  }
  function set_type($value)
  {
    return $this->_set_value("8", $value);
  }
  function type_string()
  {
    return $this->values["8"]->get_description();
  }
  function channel()
  {
    return $this->_get_value("4");
  }
  function set_channel($value)
  {
    return $this->_set_value("4", $value);
  }
  function channel_string()
  {
    return $this->values["4"]->get_description();
  }
  function message2share()
  {
    return $this->_get_value("5");
  }
  function set_message2share($value)
  {
    return $this->_set_value("5", $value);
  }
  function photo_uri()
  {
    return $this->_get_value("7");
  }
  function set_photo_uri($value)
  {
    return $this->_set_value("7", $value);
  }
  function address_type($offset)
  {
    $v = $this->_get_arr_value("9", $offset);
    return $v->get_value();
  }
  function append_address_type($value)
  {
    $v = $this->_add_arr_value("9");
    $v->set_value($value);
  }
  function set_address_type($index, $value)
  {
    $v = new self::$fields["SocialChannelPublishRequest"]["9"]();
    $v->set_value($value);
    $this->_set_arr_value("9", $index, $v);
  }
  function remove_last_address_type()
  {
    $this->_remove_last_arr_value("9");
  }
  function address_types_size()
  {
    return $this->_get_arr_size("9");
  }
  function get_address_types()
  {
    return $this->_get_value("9");
  }
  function group($offset)
  {
    return $this->_get_arr_value("10", $offset);
  }
  function add_group()
  {
    return $this->_add_arr_value("10");
  }
  function set_group($index, $value)
  {
    $this->_set_arr_value("10", $index, $value);
  }
  function set_all_groups($values)
  {
    return $this->_set_arr_values("10", $values);
  }
  function remove_last_group()
  {
    $this->_remove_last_arr_value("10");
  }
  function groups_size()
  {
    return $this->_get_arr_size("10");
  }
  function get_groups()
  {
    return $this->_get_value("10");
  }
}
class SocialChannelPublishReply_ErrorType extends PBEnum
{
  const SUCCESS  = 0;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "SUCCESS");
   }
}
class SocialChannelPublishReply extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["SocialChannelPublishReply"]["1"] = "SocialChannelPublishReply_ErrorType";
    $this->values["1"] = "";
    self::$fieldNames["SocialChannelPublishReply"]["1"] = "error_no";
    self::$fields["SocialChannelPublishReply"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["SocialChannelPublishReply"]["2"] = "error_msg";
  }
  function error_no()
  {
    return $this->_get_value("1");
  }
  function set_error_no($value)
  {
    return $this->_set_value("1", $value);
  }
  function error_no_string()
  {
    return $this->values["1"]->get_description();
  }
  function error_msg()
  {
    return $this->_get_value("2");
  }
  function set_error_msg($value)
  {
    return $this->_set_value("2", $value);
  }
}
class ItemCRUDRequest extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["ItemCRUDRequest"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["ItemCRUDRequest"]["1"] = "uid";
    self::$fields["ItemCRUDRequest"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["ItemCRUDRequest"]["2"] = "session_key";
    self::$fields["ItemCRUDRequest"]["3"] = "Item";
    $this->values["3"] = array();
    self::$fieldNames["ItemCRUDRequest"]["3"] = "item";
    self::$fields["ItemCRUDRequest"]["4"] = "PBBool";
    $this->values["4"] = "";
    self::$fieldNames["ItemCRUDRequest"]["4"] = "create_feed";
  }
  function uid()
  {
    return $this->_get_value("1");
  }
  function set_uid($value)
  {
    return $this->_set_value("1", $value);
  }
  function session_key()
  {
    return $this->_get_value("2");
  }
  function set_session_key($value)
  {
    return $this->_set_value("2", $value);
  }
  function item($offset)
  {
    return $this->_get_arr_value("3", $offset);
  }
  function add_item()
  {
    return $this->_add_arr_value("3");
  }
  function set_item($index, $value)
  {
    $this->_set_arr_value("3", $index, $value);
  }
  function set_all_items($values)
  {
    return $this->_set_arr_values("3", $values);
  }
  function remove_last_item()
  {
    $this->_remove_last_arr_value("3");
  }
  function items_size()
  {
    return $this->_get_arr_size("3");
  }
  function get_items()
  {
    return $this->_get_value("3");
  }
  function create_feed()
  {
    return $this->_get_value("4");
  }
  function set_create_feed($value)
  {
    return $this->_set_value("4", $value);
  }
}
class ItemCRUDReply_ErrorNo extends PBEnum
{
  const SUCCESS  = 1;
  const EXISTS  = 2;
  const NOT_EXISTS  = 3;
  const FAIL  = 4;
  const FAIL_AUTH  = 5;
  const PERMISSION_DENIED  = 6;
  const TAG_TOO_LONG  = 7;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			1 => "SUCCESS",
			2 => "EXISTS",
			3 => "NOT_EXISTS",
			4 => "FAIL",
			5 => "FAIL_AUTH",
			6 => "PERMISSION_DENIED",
			7 => "TAG_TOO_LONG");
   }
}
class ItemCRUDReply extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["ItemCRUDReply"]["1"] = "ItemCRUDReply_ErrorNo";
    $this->values["1"] = "";
    self::$fieldNames["ItemCRUDReply"]["1"] = "error_no";
    self::$fields["ItemCRUDReply"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["ItemCRUDReply"]["2"] = "error_msg";
    self::$fields["ItemCRUDReply"]["3"] = "PBString";
    $this->values["3"] = array();
    self::$fieldNames["ItemCRUDReply"]["3"] = "item_id";
  }
  function error_no()
  {
    return $this->_get_value("1");
  }
  function set_error_no($value)
  {
    return $this->_set_value("1", $value);
  }
  function error_no_string()
  {
    return $this->values["1"]->get_description();
  }
  function error_msg()
  {
    return $this->_get_value("2");
  }
  function set_error_msg($value)
  {
    return $this->_set_value("2", $value);
  }
  function item_id($offset)
  {
    $v = $this->_get_arr_value("3", $offset);
    return $v->get_value();
  }
  function append_item_id($value)
  {
    $v = $this->_add_arr_value("3");
    $v->set_value($value);
  }
  function set_item_id($index, $value)
  {
    $v = new self::$fields["ItemCRUDReply"]["3"]();
    $v->set_value($value);
    $this->_set_arr_value("3", $index, $v);
  }
  function remove_last_item_id()
  {
    $this->_remove_last_arr_value("3");
  }
  function item_ids_size()
  {
    return $this->_get_arr_size("3");
  }
  function get_item_ids()
  {
    return $this->_get_value("3");
  }
}
class ItemGetRequest_SortType extends PBEnum
{
  const INC  = 0;
  const DEC  = 1;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "INC",
			1 => "DEC");
   }
}
class ItemGetRequest extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["ItemGetRequest"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["ItemGetRequest"]["1"] = "uid";
    self::$fields["ItemGetRequest"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["ItemGetRequest"]["2"] = "session_key";
    self::$fields["ItemGetRequest"]["3"] = "ItemType";
    $this->values["3"] = array();
    self::$fieldNames["ItemGetRequest"]["3"] = "item_type";
    self::$fields["ItemGetRequest"]["4"] = "PBString";
    $this->values["4"] = array();
    self::$fieldNames["ItemGetRequest"]["4"] = "tag_label";
    self::$fields["ItemGetRequest"]["5"] = "PBInt";
    $this->values["5"] = "";
    self::$fieldNames["ItemGetRequest"]["5"] = "after_timestamp";
    self::$fields["ItemGetRequest"]["6"] = "PBInt";
    $this->values["6"] = "";
    self::$fieldNames["ItemGetRequest"]["6"] = "before_timestamp";
    self::$fields["ItemGetRequest"]["8"] = "ItemGetRequest_SortType";
    $this->values["8"] = "";
    self::$fieldNames["ItemGetRequest"]["8"] = "sort";
    self::$fields["ItemGetRequest"]["7"] = "PBInt";
    $this->values["7"] = "";
    self::$fieldNames["ItemGetRequest"]["7"] = "num_items";
    self::$fields["ItemGetRequest"]["9"] = "PBBool";
    $this->values["9"] = "";
    $this->values["9"] = new PBBool();
    $this->values["9"]->value = false;
    self::$fieldNames["ItemGetRequest"]["9"] = "include_hidden";
  }
  function uid()
  {
    return $this->_get_value("1");
  }
  function set_uid($value)
  {
    return $this->_set_value("1", $value);
  }
  function session_key()
  {
    return $this->_get_value("2");
  }
  function set_session_key($value)
  {
    return $this->_set_value("2", $value);
  }
  function item_type($offset)
  {
    $v = $this->_get_arr_value("3", $offset);
    return $v->get_value();
  }
  function append_item_type($value)
  {
    $v = $this->_add_arr_value("3");
    $v->set_value($value);
  }
  function set_item_type($index, $value)
  {
    $v = new self::$fields["ItemGetRequest"]["3"]();
    $v->set_value($value);
    $this->_set_arr_value("3", $index, $v);
  }
  function remove_last_item_type()
  {
    $this->_remove_last_arr_value("3");
  }
  function item_types_size()
  {
    return $this->_get_arr_size("3");
  }
  function get_item_types()
  {
    return $this->_get_value("3");
  }
  function tag_label($offset)
  {
    $v = $this->_get_arr_value("4", $offset);
    return $v->get_value();
  }
  function append_tag_label($value)
  {
    $v = $this->_add_arr_value("4");
    $v->set_value($value);
  }
  function set_tag_label($index, $value)
  {
    $v = new self::$fields["ItemGetRequest"]["4"]();
    $v->set_value($value);
    $this->_set_arr_value("4", $index, $v);
  }
  function remove_last_tag_label()
  {
    $this->_remove_last_arr_value("4");
  }
  function tag_labels_size()
  {
    return $this->_get_arr_size("4");
  }
  function get_tag_labels()
  {
    return $this->_get_value("4");
  }
  function after_timestamp()
  {
    return $this->_get_value("5");
  }
  function set_after_timestamp($value)
  {
    return $this->_set_value("5", $value);
  }
  function before_timestamp()
  {
    return $this->_get_value("6");
  }
  function set_before_timestamp($value)
  {
    return $this->_set_value("6", $value);
  }
  function sort()
  {
    return $this->_get_value("8");
  }
  function set_sort($value)
  {
    return $this->_set_value("8", $value);
  }
  function sort_string()
  {
    return $this->values["8"]->get_description();
  }
  function num_items()
  {
    return $this->_get_value("7");
  }
  function set_num_items($value)
  {
    return $this->_set_value("7", $value);
  }
  function include_hidden()
  {
    return $this->_get_value("9");
  }
  function set_include_hidden($value)
  {
    return $this->_set_value("9", $value);
  }
}
class ItemGetReply_ErrorType extends PBEnum
{
  const SUCCESS  = 0;
  const FAIL  = 1;
  const FAIL_SYS  = 2;
  const FAIL_NETWORK  = 3;
  const FAIL_AUTH  = 4;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "SUCCESS",
			1 => "FAIL",
			2 => "FAIL_SYS",
			3 => "FAIL_NETWORK",
			4 => "FAIL_AUTH");
   }
}
class ItemGetReply extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["ItemGetReply"]["1"] = "ItemGetReply_ErrorType";
    $this->values["1"] = "";
    self::$fieldNames["ItemGetReply"]["1"] = "error_no";
    self::$fields["ItemGetReply"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["ItemGetReply"]["2"] = "error_msg";
    self::$fields["ItemGetReply"]["3"] = "PBInt";
    $this->values["3"] = "";
    $this->values["3"] = new PBInt();
    $this->values["3"]->value = 0;
    self::$fieldNames["ItemGetReply"]["3"] = "num_items";
    self::$fields["ItemGetReply"]["4"] = "Item";
    $this->values["4"] = array();
    self::$fieldNames["ItemGetReply"]["4"] = "item";
    self::$fields["ItemGetReply"]["5"] = "PBInt";
    $this->values["5"] = "";
    self::$fieldNames["ItemGetReply"]["5"] = "total_items";
  }
  function error_no()
  {
    return $this->_get_value("1");
  }
  function set_error_no($value)
  {
    return $this->_set_value("1", $value);
  }
  function error_no_string()
  {
    return $this->values["1"]->get_description();
  }
  function error_msg()
  {
    return $this->_get_value("2");
  }
  function set_error_msg($value)
  {
    return $this->_set_value("2", $value);
  }
  function num_items()
  {
    return $this->_get_value("3");
  }
  function set_num_items($value)
  {
    return $this->_set_value("3", $value);
  }
  function item($offset)
  {
    return $this->_get_arr_value("4", $offset);
  }
  function add_item()
  {
    return $this->_add_arr_value("4");
  }
  function set_item($index, $value)
  {
    $this->_set_arr_value("4", $index, $value);
  }
  function set_all_items($values)
  {
    return $this->_set_arr_values("4", $values);
  }
  function remove_last_item()
  {
    $this->_remove_last_arr_value("4");
  }
  function items_size()
  {
    return $this->_get_arr_size("4");
  }
  function get_items()
  {
    return $this->_get_value("4");
  }
  function total_items()
  {
    return $this->_get_value("5");
  }
  function set_total_items($value)
  {
    return $this->_set_value("5", $value);
  }
}
class StreamAction_StreamActivity extends PBEnum
{
  const CREATE  = 1;
  const UPDATE  = 2;
  const SHARE  = 3;
  const CHECK_IN  = 4;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			1 => "CREATE",
			2 => "UPDATE",
			3 => "SHARE",
			4 => "CHECK_IN");
   }
}
class StreamAction extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["StreamAction"]["1"] = "ProfileLite";
    $this->values["1"] = "";
    self::$fieldNames["StreamAction"]["1"] = "user";
    self::$fields["StreamAction"]["2"] = "StreamAction_StreamActivity";
    $this->values["2"] = "";
    self::$fieldNames["StreamAction"]["2"] = "action";
    self::$fields["StreamAction"]["3"] = "PBInt";
    $this->values["3"] = "";
    self::$fieldNames["StreamAction"]["3"] = "timestamp";
    self::$fields["StreamAction"]["4"] = "TextMessage";
    $this->values["4"] = "";
    self::$fieldNames["StreamAction"]["4"] = "action_message";
    self::$fields["StreamAction"]["5"] = "PBBool";
    $this->values["5"] = "";
    self::$fieldNames["StreamAction"]["5"] = "thanked";
    self::$fields["StreamAction"]["7"] = "PBInt";
    $this->values["7"] = "";
    self::$fieldNames["StreamAction"]["7"] = "num_thanks";
    self::$fields["StreamAction"]["6"] = "PBString";
    $this->values["6"] = "";
    self::$fieldNames["StreamAction"]["6"] = "token_id";
    self::$fields["StreamAction"]["8"] = "ProfileLite";
    $this->values["8"] = "";
    self::$fieldNames["StreamAction"]["8"] = "via";
  }
  function user()
  {
    return $this->_get_value("1");
  }
  function set_user($value)
  {
    return $this->_set_value("1", $value);
  }
  function action()
  {
    return $this->_get_value("2");
  }
  function set_action($value)
  {
    return $this->_set_value("2", $value);
  }
  function action_string()
  {
    return $this->values["2"]->get_description();
  }
  function timestamp()
  {
    return $this->_get_value("3");
  }
  function set_timestamp($value)
  {
    return $this->_set_value("3", $value);
  }
  function action_message()
  {
    return $this->_get_value("4");
  }
  function set_action_message($value)
  {
    return $this->_set_value("4", $value);
  }
  function thanked()
  {
    return $this->_get_value("5");
  }
  function set_thanked($value)
  {
    return $this->_set_value("5", $value);
  }
  function num_thanks()
  {
    return $this->_get_value("7");
  }
  function set_num_thanks($value)
  {
    return $this->_set_value("7", $value);
  }
  function token_id()
  {
    return $this->_get_value("6");
  }
  function set_token_id($value)
  {
    return $this->_set_value("6", $value);
  }
  function via()
  {
    return $this->_get_value("8");
  }
  function set_via($value)
  {
    return $this->_set_value("8", $value);
  }
}
class NewsFeed extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["NewsFeed"]["1"] = "Item";
    $this->values["1"] = "";
    self::$fieldNames["NewsFeed"]["1"] = "content";
    self::$fields["NewsFeed"]["2"] = "StreamAction";
    $this->values["2"] = array();
    self::$fieldNames["NewsFeed"]["2"] = "action";
  }
  function content()
  {
    return $this->_get_value("1");
  }
  function set_content($value)
  {
    return $this->_set_value("1", $value);
  }
  function action($offset)
  {
    return $this->_get_arr_value("2", $offset);
  }
  function add_action()
  {
    return $this->_add_arr_value("2");
  }
  function set_action($index, $value)
  {
    $this->_set_arr_value("2", $index, $value);
  }
  function set_all_actions($values)
  {
    return $this->_set_arr_values("2", $values);
  }
  function remove_last_action()
  {
    $this->_remove_last_arr_value("2");
  }
  function actions_size()
  {
    return $this->_get_arr_size("2");
  }
  function get_actions()
  {
    return $this->_get_value("2");
  }
}
class NewsFeedGetRequest extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["NewsFeedGetRequest"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["NewsFeedGetRequest"]["1"] = "uid";
    self::$fields["NewsFeedGetRequest"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["NewsFeedGetRequest"]["2"] = "session_key";
    self::$fields["NewsFeedGetRequest"]["4"] = "PBInt";
    $this->values["4"] = "";
    self::$fieldNames["NewsFeedGetRequest"]["4"] = "after_timestamp";
    self::$fields["NewsFeedGetRequest"]["5"] = "PBInt";
    $this->values["5"] = "";
    self::$fieldNames["NewsFeedGetRequest"]["5"] = "before_timestamp";
    self::$fields["NewsFeedGetRequest"]["6"] = "PBInt";
    $this->values["6"] = "";
    self::$fieldNames["NewsFeedGetRequest"]["6"] = "num_newsfeeds";
  }
  function uid()
  {
    return $this->_get_value("1");
  }
  function set_uid($value)
  {
    return $this->_set_value("1", $value);
  }
  function session_key()
  {
    return $this->_get_value("2");
  }
  function set_session_key($value)
  {
    return $this->_set_value("2", $value);
  }
  function after_timestamp()
  {
    return $this->_get_value("4");
  }
  function set_after_timestamp($value)
  {
    return $this->_set_value("4", $value);
  }
  function before_timestamp()
  {
    return $this->_get_value("5");
  }
  function set_before_timestamp($value)
  {
    return $this->_set_value("5", $value);
  }
  function num_newsfeeds()
  {
    return $this->_get_value("6");
  }
  function set_num_newsfeeds($value)
  {
    return $this->_set_value("6", $value);
  }
}
class NewsFeedGetReply_ErrorType extends PBEnum
{
  const SUCCESS  = 0;
  const FAIL  = 1;
  const FAIL_SYS  = 2;
  const FAIL_NETWORK  = 3;
  const FAIL_AUTH  = 4;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "SUCCESS",
			1 => "FAIL",
			2 => "FAIL_SYS",
			3 => "FAIL_NETWORK",
			4 => "FAIL_AUTH");
   }
}
class NewsFeedGetReply extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["NewsFeedGetReply"]["1"] = "NewsFeedGetReply_ErrorType";
    $this->values["1"] = "";
    self::$fieldNames["NewsFeedGetReply"]["1"] = "error_no";
    self::$fields["NewsFeedGetReply"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["NewsFeedGetReply"]["2"] = "error_msg";
    self::$fields["NewsFeedGetReply"]["3"] = "PBInt";
    $this->values["3"] = "";
    self::$fieldNames["NewsFeedGetReply"]["3"] = "num_newsfeeds";
    self::$fields["NewsFeedGetReply"]["4"] = "NewsFeed";
    $this->values["4"] = array();
    self::$fieldNames["NewsFeedGetReply"]["4"] = "newsfeed";
  }
  function error_no()
  {
    return $this->_get_value("1");
  }
  function set_error_no($value)
  {
    return $this->_set_value("1", $value);
  }
  function error_no_string()
  {
    return $this->values["1"]->get_description();
  }
  function error_msg()
  {
    return $this->_get_value("2");
  }
  function set_error_msg($value)
  {
    return $this->_set_value("2", $value);
  }
  function num_newsfeeds()
  {
    return $this->_get_value("3");
  }
  function set_num_newsfeeds($value)
  {
    return $this->_set_value("3", $value);
  }
  function newsfeed($offset)
  {
    return $this->_get_arr_value("4", $offset);
  }
  function add_newsfeed()
  {
    return $this->_add_arr_value("4");
  }
  function set_newsfeed($index, $value)
  {
    $this->_set_arr_value("4", $index, $value);
  }
  function set_all_newsfeeds($values)
  {
    return $this->_set_arr_values("4", $values);
  }
  function remove_last_newsfeed()
  {
    $this->_remove_last_arr_value("4");
  }
  function newsfeeds_size()
  {
    return $this->_get_arr_size("4");
  }
  function get_newsfeeds()
  {
    return $this->_get_value("4");
  }
}
class ItemDetailGetRequest extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["ItemDetailGetRequest"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["ItemDetailGetRequest"]["1"] = "uid";
    self::$fields["ItemDetailGetRequest"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["ItemDetailGetRequest"]["2"] = "session_key";
    self::$fields["ItemDetailGetRequest"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["ItemDetailGetRequest"]["3"] = "item_id";
    self::$fields["ItemDetailGetRequest"]["4"] = "PBBool";
    $this->values["4"] = "";
    $this->values["4"] = new PBBool();
    $this->values["4"]->value = false;
    self::$fieldNames["ItemDetailGetRequest"]["4"] = "include_hidden";
    self::$fields["ItemDetailGetRequest"]["5"] = "PBInt";
    $this->values["5"] = "";
    $this->values["5"] = new PBInt();
    $this->values["5"]->value = 3;
    self::$fieldNames["ItemDetailGetRequest"]["5"] = "num_sample_user_per_action";
  }
  function uid()
  {
    return $this->_get_value("1");
  }
  function set_uid($value)
  {
    return $this->_set_value("1", $value);
  }
  function session_key()
  {
    return $this->_get_value("2");
  }
  function set_session_key($value)
  {
    return $this->_set_value("2", $value);
  }
  function item_id()
  {
    return $this->_get_value("3");
  }
  function set_item_id($value)
  {
    return $this->_set_value("3", $value);
  }
  function include_hidden()
  {
    return $this->_get_value("4");
  }
  function set_include_hidden($value)
  {
    return $this->_set_value("4", $value);
  }
  function num_sample_user_per_action()
  {
    return $this->_get_value("5");
  }
  function set_num_sample_user_per_action($value)
  {
    return $this->_set_value("5", $value);
  }
}
class ItemDetailGetReply_ErrorType extends PBEnum
{
  const SUCCESS  = 0;
  const FAIL  = 1;
  const FAIL_SYS  = 2;
  const FAIL_NETWORK  = 3;
  const FAIL_AUTH  = 4;
  const CONTENT_NOT_AVAILABLE  = 5;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "SUCCESS",
			1 => "FAIL",
			2 => "FAIL_SYS",
			3 => "FAIL_NETWORK",
			4 => "FAIL_AUTH",
			5 => "CONTENT_NOT_AVAILABLE");
   }
}
class ItemDetailGetReply extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["ItemDetailGetReply"]["1"] = "ItemDetailGetReply_ErrorType";
    $this->values["1"] = "";
    self::$fieldNames["ItemDetailGetReply"]["1"] = "error_no";
    self::$fields["ItemDetailGetReply"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["ItemDetailGetReply"]["2"] = "error_msg";
    self::$fields["ItemDetailGetReply"]["4"] = "Item";
    $this->values["4"] = "";
    self::$fieldNames["ItemDetailGetReply"]["4"] = "item";
  }
  function error_no()
  {
    return $this->_get_value("1");
  }
  function set_error_no($value)
  {
    return $this->_set_value("1", $value);
  }
  function error_no_string()
  {
    return $this->values["1"]->get_description();
  }
  function error_msg()
  {
    return $this->_get_value("2");
  }
  function set_error_msg($value)
  {
    return $this->_set_value("2", $value);
  }
  function item()
  {
    return $this->_get_value("4");
  }
  function set_item($value)
  {
    return $this->_set_value("4", $value);
  }
}
class FullRagecomicAlbumGetRequest extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["FullRagecomicAlbumGetRequest"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["FullRagecomicAlbumGetRequest"]["1"] = "uid";
    self::$fields["FullRagecomicAlbumGetRequest"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["FullRagecomicAlbumGetRequest"]["2"] = "session_key";
    self::$fields["FullRagecomicAlbumGetRequest"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["FullRagecomicAlbumGetRequest"]["3"] = "album_id";
  }
  function uid()
  {
    return $this->_get_value("1");
  }
  function set_uid($value)
  {
    return $this->_set_value("1", $value);
  }
  function session_key()
  {
    return $this->_get_value("2");
  }
  function set_session_key($value)
  {
    return $this->_set_value("2", $value);
  }
  function album_id()
  {
    return $this->_get_value("3");
  }
  function set_album_id($value)
  {
    return $this->_set_value("3", $value);
  }
}
class FullRagecomicAlbumGetReply_ErrorType extends PBEnum
{
  const SUCCESS  = 0;
  const FAIL  = 1;
  const FAIL_SYS  = 2;
  const FAIL_NETWORK  = 3;
  const FAIL_AUTH  = 4;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "SUCCESS",
			1 => "FAIL",
			2 => "FAIL_SYS",
			3 => "FAIL_NETWORK",
			4 => "FAIL_AUTH");
   }
}
class FullRagecomicAlbumGetReply extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["FullRagecomicAlbumGetReply"]["1"] = "FullRagecomicAlbumGetReply_ErrorType";
    $this->values["1"] = "";
    self::$fieldNames["FullRagecomicAlbumGetReply"]["1"] = "error_no";
    self::$fields["FullRagecomicAlbumGetReply"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["FullRagecomicAlbumGetReply"]["2"] = "error_msg";
    self::$fields["FullRagecomicAlbumGetReply"]["3"] = "RageComicAlbumItem";
    $this->values["3"] = "";
    self::$fieldNames["FullRagecomicAlbumGetReply"]["3"] = "album";
  }
  function error_no()
  {
    return $this->_get_value("1");
  }
  function set_error_no($value)
  {
    return $this->_set_value("1", $value);
  }
  function error_no_string()
  {
    return $this->values["1"]->get_description();
  }
  function error_msg()
  {
    return $this->_get_value("2");
  }
  function set_error_msg($value)
  {
    return $this->_set_value("2", $value);
  }
  function album()
  {
    return $this->_get_value("3");
  }
  function set_album($value)
  {
    return $this->_set_value("3", $value);
  }
}
class ContentActivityListRequest extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["ContentActivityListRequest"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["ContentActivityListRequest"]["1"] = "content_ID";
    self::$fields["ContentActivityListRequest"]["2"] = "PBInt";
    $this->values["2"] = "";
    self::$fieldNames["ContentActivityListRequest"]["2"] = "num";
    self::$fields["ContentActivityListRequest"]["3"] = "User2ContentActionType";
    $this->values["3"] = "";
    self::$fieldNames["ContentActivityListRequest"]["3"] = "action";
    self::$fields["ContentActivityListRequest"]["4"] = "PBInt";
    $this->values["4"] = "";
    self::$fieldNames["ContentActivityListRequest"]["4"] = "before_timestamp";
    self::$fields["ContentActivityListRequest"]["5"] = "PBInt";
    $this->values["5"] = "";
    self::$fieldNames["ContentActivityListRequest"]["5"] = "after_timestamp";
    self::$fields["ContentActivityListRequest"]["6"] = "PBString";
    $this->values["6"] = "";
    self::$fieldNames["ContentActivityListRequest"]["6"] = "uid";
    self::$fields["ContentActivityListRequest"]["7"] = "PBString";
    $this->values["7"] = "";
    self::$fieldNames["ContentActivityListRequest"]["7"] = "session_key";
  }
  function content_ID()
  {
    return $this->_get_value("1");
  }
  function set_content_ID($value)
  {
    return $this->_set_value("1", $value);
  }
  function num()
  {
    return $this->_get_value("2");
  }
  function set_num($value)
  {
    return $this->_set_value("2", $value);
  }
  function action()
  {
    return $this->_get_value("3");
  }
  function set_action($value)
  {
    return $this->_set_value("3", $value);
  }
  function action_string()
  {
    return $this->values["3"]->get_description();
  }
  function before_timestamp()
  {
    return $this->_get_value("4");
  }
  function set_before_timestamp($value)
  {
    return $this->_set_value("4", $value);
  }
  function after_timestamp()
  {
    return $this->_get_value("5");
  }
  function set_after_timestamp($value)
  {
    return $this->_set_value("5", $value);
  }
  function uid()
  {
    return $this->_get_value("6");
  }
  function set_uid($value)
  {
    return $this->_set_value("6", $value);
  }
  function session_key()
  {
    return $this->_get_value("7");
  }
  function set_session_key($value)
  {
    return $this->_set_value("7", $value);
  }
}
class ContentActivityListReply_ErrorType extends PBEnum
{
  const SUCCESS  = 0;
  const FAIL  = 1;
  const FAIL_SYS  = 2;
  const FAIL_NETWORK  = 3;
  const FAIL_AUTH  = 4;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "SUCCESS",
			1 => "FAIL",
			2 => "FAIL_SYS",
			3 => "FAIL_NETWORK",
			4 => "FAIL_AUTH");
   }
}
class ContentActivityListReply_LikeInfo extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["ContentActivityListReply_LikeInfo"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["ContentActivityListReply_LikeInfo"]["1"] = "uid";
    self::$fields["ContentActivityListReply_LikeInfo"]["3"] = "PBInt";
    $this->values["3"] = "";
    self::$fieldNames["ContentActivityListReply_LikeInfo"]["3"] = "timestamp";
    self::$fields["ContentActivityListReply_LikeInfo"]["4"] = "PBString";
    $this->values["4"] = "";
    self::$fieldNames["ContentActivityListReply_LikeInfo"]["4"] = "profile_picture_uri";
    self::$fields["ContentActivityListReply_LikeInfo"]["5"] = "PBString";
    $this->values["5"] = "";
    self::$fieldNames["ContentActivityListReply_LikeInfo"]["5"] = "username";
    self::$fields["ContentActivityListReply_LikeInfo"]["6"] = "PBString";
    $this->values["6"] = "";
    self::$fieldNames["ContentActivityListReply_LikeInfo"]["6"] = "fullname";
    self::$fields["ContentActivityListReply_LikeInfo"]["7"] = "PBBool";
    $this->values["7"] = "";
    self::$fieldNames["ContentActivityListReply_LikeInfo"]["7"] = "isFollowing";
  }
  function uid()
  {
    return $this->_get_value("1");
  }
  function set_uid($value)
  {
    return $this->_set_value("1", $value);
  }
  function timestamp()
  {
    return $this->_get_value("3");
  }
  function set_timestamp($value)
  {
    return $this->_set_value("3", $value);
  }
  function profile_picture_uri()
  {
    return $this->_get_value("4");
  }
  function set_profile_picture_uri($value)
  {
    return $this->_set_value("4", $value);
  }
  function username()
  {
    return $this->_get_value("5");
  }
  function set_username($value)
  {
    return $this->_set_value("5", $value);
  }
  function fullname()
  {
    return $this->_get_value("6");
  }
  function set_fullname($value)
  {
    return $this->_set_value("6", $value);
  }
  function isFollowing()
  {
    return $this->_get_value("7");
  }
  function set_isFollowing($value)
  {
    return $this->_set_value("7", $value);
  }
}
class ContentActivityListReply_ShareInfo extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["ContentActivityListReply_ShareInfo"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["ContentActivityListReply_ShareInfo"]["1"] = "uid";
    self::$fields["ContentActivityListReply_ShareInfo"]["2"] = "TextMessage";
    $this->values["2"] = "";
    self::$fieldNames["ContentActivityListReply_ShareInfo"]["2"] = "message";
    self::$fields["ContentActivityListReply_ShareInfo"]["3"] = "PBInt";
    $this->values["3"] = "";
    self::$fieldNames["ContentActivityListReply_ShareInfo"]["3"] = "timestamp";
    self::$fields["ContentActivityListReply_ShareInfo"]["4"] = "PBString";
    $this->values["4"] = "";
    self::$fieldNames["ContentActivityListReply_ShareInfo"]["4"] = "profile_picture_uri";
    self::$fields["ContentActivityListReply_ShareInfo"]["5"] = "PBString";
    $this->values["5"] = "";
    self::$fieldNames["ContentActivityListReply_ShareInfo"]["5"] = "username";
    self::$fields["ContentActivityListReply_ShareInfo"]["6"] = "PBString";
    $this->values["6"] = "";
    self::$fieldNames["ContentActivityListReply_ShareInfo"]["6"] = "fullname";
    self::$fields["ContentActivityListReply_ShareInfo"]["7"] = "PBBool";
    $this->values["7"] = "";
    self::$fieldNames["ContentActivityListReply_ShareInfo"]["7"] = "isFollowing";
    self::$fields["ContentActivityListReply_ShareInfo"]["8"] = "PBString";
    $this->values["8"] = "";
    self::$fieldNames["ContentActivityListReply_ShareInfo"]["8"] = "action_id";
  }
  function uid()
  {
    return $this->_get_value("1");
  }
  function set_uid($value)
  {
    return $this->_set_value("1", $value);
  }
  function message()
  {
    return $this->_get_value("2");
  }
  function set_message($value)
  {
    return $this->_set_value("2", $value);
  }
  function timestamp()
  {
    return $this->_get_value("3");
  }
  function set_timestamp($value)
  {
    return $this->_set_value("3", $value);
  }
  function profile_picture_uri()
  {
    return $this->_get_value("4");
  }
  function set_profile_picture_uri($value)
  {
    return $this->_set_value("4", $value);
  }
  function username()
  {
    return $this->_get_value("5");
  }
  function set_username($value)
  {
    return $this->_set_value("5", $value);
  }
  function fullname()
  {
    return $this->_get_value("6");
  }
  function set_fullname($value)
  {
    return $this->_set_value("6", $value);
  }
  function isFollowing()
  {
    return $this->_get_value("7");
  }
  function set_isFollowing($value)
  {
    return $this->_set_value("7", $value);
  }
  function action_id()
  {
    return $this->_get_value("8");
  }
  function set_action_id($value)
  {
    return $this->_set_value("8", $value);
  }
}
class ContentActivityListReply_CommentInfo extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["ContentActivityListReply_CommentInfo"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["ContentActivityListReply_CommentInfo"]["1"] = "uid";
    self::$fields["ContentActivityListReply_CommentInfo"]["2"] = "TextMessage";
    $this->values["2"] = "";
    self::$fieldNames["ContentActivityListReply_CommentInfo"]["2"] = "comment";
    self::$fields["ContentActivityListReply_CommentInfo"]["3"] = "PBInt";
    $this->values["3"] = "";
    self::$fieldNames["ContentActivityListReply_CommentInfo"]["3"] = "timestamp";
    self::$fields["ContentActivityListReply_CommentInfo"]["4"] = "PBString";
    $this->values["4"] = "";
    self::$fieldNames["ContentActivityListReply_CommentInfo"]["4"] = "profile_picture_uri";
    self::$fields["ContentActivityListReply_CommentInfo"]["5"] = "PBString";
    $this->values["5"] = "";
    self::$fieldNames["ContentActivityListReply_CommentInfo"]["5"] = "username";
    self::$fields["ContentActivityListReply_CommentInfo"]["6"] = "PBString";
    $this->values["6"] = "";
    self::$fieldNames["ContentActivityListReply_CommentInfo"]["6"] = "fullname";
    self::$fields["ContentActivityListReply_CommentInfo"]["7"] = "PBBool";
    $this->values["7"] = "";
    self::$fieldNames["ContentActivityListReply_CommentInfo"]["7"] = "isFollowing";
    self::$fields["ContentActivityListReply_CommentInfo"]["8"] = "PBString";
    $this->values["8"] = "";
    self::$fieldNames["ContentActivityListReply_CommentInfo"]["8"] = "action_id";
  }
  function uid()
  {
    return $this->_get_value("1");
  }
  function set_uid($value)
  {
    return $this->_set_value("1", $value);
  }
  function comment()
  {
    return $this->_get_value("2");
  }
  function set_comment($value)
  {
    return $this->_set_value("2", $value);
  }
  function timestamp()
  {
    return $this->_get_value("3");
  }
  function set_timestamp($value)
  {
    return $this->_set_value("3", $value);
  }
  function profile_picture_uri()
  {
    return $this->_get_value("4");
  }
  function set_profile_picture_uri($value)
  {
    return $this->_set_value("4", $value);
  }
  function username()
  {
    return $this->_get_value("5");
  }
  function set_username($value)
  {
    return $this->_set_value("5", $value);
  }
  function fullname()
  {
    return $this->_get_value("6");
  }
  function set_fullname($value)
  {
    return $this->_set_value("6", $value);
  }
  function isFollowing()
  {
    return $this->_get_value("7");
  }
  function set_isFollowing($value)
  {
    return $this->_set_value("7", $value);
  }
  function action_id()
  {
    return $this->_get_value("8");
  }
  function set_action_id($value)
  {
    return $this->_set_value("8", $value);
  }
}
class ContentActivityListReply_ThankInfo extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["ContentActivityListReply_ThankInfo"]["1"] = "ProfileLite";
    $this->values["1"] = "";
    self::$fieldNames["ContentActivityListReply_ThankInfo"]["1"] = "profile";
    self::$fields["ContentActivityListReply_ThankInfo"]["2"] = "PBInt";
    $this->values["2"] = "";
    self::$fieldNames["ContentActivityListReply_ThankInfo"]["2"] = "timestamp";
  }
  function profile()
  {
    return $this->_get_value("1");
  }
  function set_profile($value)
  {
    return $this->_set_value("1", $value);
  }
  function timestamp()
  {
    return $this->_get_value("2");
  }
  function set_timestamp($value)
  {
    return $this->_set_value("2", $value);
  }
}
class ContentActivityListReply extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["ContentActivityListReply"]["1"] = "ContentActivityListReply_ErrorType";
    $this->values["1"] = "";
    self::$fieldNames["ContentActivityListReply"]["1"] = "error_no";
    self::$fields["ContentActivityListReply"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["ContentActivityListReply"]["2"] = "error_msg";
    self::$fields["ContentActivityListReply"]["3"] = "User2ContentActionType";
    $this->values["3"] = "";
    self::$fieldNames["ContentActivityListReply"]["3"] = "action";
    self::$fields["ContentActivityListReply"]["4"] = "ContentActivityListReply_LikeInfo";
    $this->values["4"] = array();
    self::$fieldNames["ContentActivityListReply"]["4"] = "like_info";
    self::$fields["ContentActivityListReply"]["5"] = "ContentActivityListReply_ShareInfo";
    $this->values["5"] = array();
    self::$fieldNames["ContentActivityListReply"]["5"] = "share_info";
    self::$fields["ContentActivityListReply"]["6"] = "ContentActivityListReply_CommentInfo";
    $this->values["6"] = array();
    self::$fieldNames["ContentActivityListReply"]["6"] = "comment_info";
    self::$fields["ContentActivityListReply"]["10"] = "ContentActivityListReply_ThankInfo";
    $this->values["10"] = array();
    self::$fieldNames["ContentActivityListReply"]["10"] = "thank_info";
    self::$fields["ContentActivityListReply"]["7"] = "PBInt";
    $this->values["7"] = "";
    self::$fieldNames["ContentActivityListReply"]["7"] = "num_likes";
    self::$fields["ContentActivityListReply"]["8"] = "PBInt";
    $this->values["8"] = "";
    self::$fieldNames["ContentActivityListReply"]["8"] = "num_shares";
    self::$fields["ContentActivityListReply"]["9"] = "PBInt";
    $this->values["9"] = "";
    self::$fieldNames["ContentActivityListReply"]["9"] = "num_comments";
    self::$fields["ContentActivityListReply"]["11"] = "PBInt";
    $this->values["11"] = "";
    self::$fieldNames["ContentActivityListReply"]["11"] = "num_thanks";
    self::$fields["ContentActivityListReply"]["12"] = "PBInt";
    $this->values["12"] = "";
    self::$fieldNames["ContentActivityListReply"]["12"] = "num_subscribes";
    self::$fields["ContentActivityListReply"]["13"] = "ProfileLite";
    $this->values["13"] = array();
    self::$fieldNames["ContentActivityListReply"]["13"] = "subscribers";
  }
  function error_no()
  {
    return $this->_get_value("1");
  }
  function set_error_no($value)
  {
    return $this->_set_value("1", $value);
  }
  function error_no_string()
  {
    return $this->values["1"]->get_description();
  }
  function error_msg()
  {
    return $this->_get_value("2");
  }
  function set_error_msg($value)
  {
    return $this->_set_value("2", $value);
  }
  function action()
  {
    return $this->_get_value("3");
  }
  function set_action($value)
  {
    return $this->_set_value("3", $value);
  }
  function action_string()
  {
    return $this->values["3"]->get_description();
  }
  function like_info($offset)
  {
    return $this->_get_arr_value("4", $offset);
  }
  function add_like_info()
  {
    return $this->_add_arr_value("4");
  }
  function set_like_info($index, $value)
  {
    $this->_set_arr_value("4", $index, $value);
  }
  function set_all_like_infos($values)
  {
    return $this->_set_arr_values("4", $values);
  }
  function remove_last_like_info()
  {
    $this->_remove_last_arr_value("4");
  }
  function like_infos_size()
  {
    return $this->_get_arr_size("4");
  }
  function get_like_infos()
  {
    return $this->_get_value("4");
  }
  function share_info($offset)
  {
    return $this->_get_arr_value("5", $offset);
  }
  function add_share_info()
  {
    return $this->_add_arr_value("5");
  }
  function set_share_info($index, $value)
  {
    $this->_set_arr_value("5", $index, $value);
  }
  function set_all_share_infos($values)
  {
    return $this->_set_arr_values("5", $values);
  }
  function remove_last_share_info()
  {
    $this->_remove_last_arr_value("5");
  }
  function share_infos_size()
  {
    return $this->_get_arr_size("5");
  }
  function get_share_infos()
  {
    return $this->_get_value("5");
  }
  function comment_info($offset)
  {
    return $this->_get_arr_value("6", $offset);
  }
  function add_comment_info()
  {
    return $this->_add_arr_value("6");
  }
  function set_comment_info($index, $value)
  {
    $this->_set_arr_value("6", $index, $value);
  }
  function set_all_comment_infos($values)
  {
    return $this->_set_arr_values("6", $values);
  }
  function remove_last_comment_info()
  {
    $this->_remove_last_arr_value("6");
  }
  function comment_infos_size()
  {
    return $this->_get_arr_size("6");
  }
  function get_comment_infos()
  {
    return $this->_get_value("6");
  }
  function thank_info($offset)
  {
    return $this->_get_arr_value("10", $offset);
  }
  function add_thank_info()
  {
    return $this->_add_arr_value("10");
  }
  function set_thank_info($index, $value)
  {
    $this->_set_arr_value("10", $index, $value);
  }
  function set_all_thank_infos($values)
  {
    return $this->_set_arr_values("10", $values);
  }
  function remove_last_thank_info()
  {
    $this->_remove_last_arr_value("10");
  }
  function thank_infos_size()
  {
    return $this->_get_arr_size("10");
  }
  function get_thank_infos()
  {
    return $this->_get_value("10");
  }
  function num_likes()
  {
    return $this->_get_value("7");
  }
  function set_num_likes($value)
  {
    return $this->_set_value("7", $value);
  }
  function num_shares()
  {
    return $this->_get_value("8");
  }
  function set_num_shares($value)
  {
    return $this->_set_value("8", $value);
  }
  function num_comments()
  {
    return $this->_get_value("9");
  }
  function set_num_comments($value)
  {
    return $this->_set_value("9", $value);
  }
  function num_thanks()
  {
    return $this->_get_value("11");
  }
  function set_num_thanks($value)
  {
    return $this->_set_value("11", $value);
  }
  function num_subscribes()
  {
    return $this->_get_value("12");
  }
  function set_num_subscribes($value)
  {
    return $this->_set_value("12", $value);
  }
  function subscribers($offset)
  {
    return $this->_get_arr_value("13", $offset);
  }
  function add_subscribers()
  {
    return $this->_add_arr_value("13");
  }
  function set_subscribers($index, $value)
  {
    $this->_set_arr_value("13", $index, $value);
  }
  function set_all_subscriberss($values)
  {
    return $this->_set_arr_values("13", $values);
  }
  function remove_last_subscribers()
  {
    $this->_remove_last_arr_value("13");
  }
  function subscriberss_size()
  {
    return $this->_get_arr_size("13");
  }
  function get_subscriberss()
  {
    return $this->_get_value("13");
  }
}
class TagSearchRequest_SearchType extends PBEnum
{
  const CONTAIN  = 0;
  const FULL_SEARCH  = 1;
  const CONTENT_TYPE_BASE  = 2;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "CONTAIN",
			1 => "FULL_SEARCH",
			2 => "CONTENT_TYPE_BASE");
   }
}
class TagSearchRequest extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["TagSearchRequest"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["TagSearchRequest"]["1"] = "uid";
    self::$fields["TagSearchRequest"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["TagSearchRequest"]["2"] = "session_key";
    self::$fields["TagSearchRequest"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["TagSearchRequest"]["3"] = "keywords";
    self::$fields["TagSearchRequest"]["4"] = "TagSearchRequest_SearchType";
    $this->values["4"] = "";
    self::$fieldNames["TagSearchRequest"]["4"] = "type";
    self::$fields["TagSearchRequest"]["5"] = "PBInt";
    $this->values["5"] = "";
    self::$fieldNames["TagSearchRequest"]["5"] = "limit";
    self::$fields["TagSearchRequest"]["8"] = "ItemType";
    $this->values["8"] = "";
    self::$fieldNames["TagSearchRequest"]["8"] = "item_type";
    self::$fields["TagSearchRequest"]["7"] = "PBBool";
    $this->values["7"] = "";
    self::$fieldNames["TagSearchRequest"]["7"] = "include_hidden";
    self::$fields["TagSearchRequest"]["9"] = "PBInt";
    $this->values["9"] = "";
    self::$fieldNames["TagSearchRequest"]["9"] = "begin_index";
  }
  function uid()
  {
    return $this->_get_value("1");
  }
  function set_uid($value)
  {
    return $this->_set_value("1", $value);
  }
  function session_key()
  {
    return $this->_get_value("2");
  }
  function set_session_key($value)
  {
    return $this->_set_value("2", $value);
  }
  function keywords()
  {
    return $this->_get_value("3");
  }
  function set_keywords($value)
  {
    return $this->_set_value("3", $value);
  }
  function type()
  {
    return $this->_get_value("4");
  }
  function set_type($value)
  {
    return $this->_set_value("4", $value);
  }
  function type_string()
  {
    return $this->values["4"]->get_description();
  }
  function limit()
  {
    return $this->_get_value("5");
  }
  function set_limit($value)
  {
    return $this->_set_value("5", $value);
  }
  function item_type()
  {
    return $this->_get_value("8");
  }
  function set_item_type($value)
  {
    return $this->_set_value("8", $value);
  }
  function item_type_string()
  {
    return $this->values["8"]->get_description();
  }
  function include_hidden()
  {
    return $this->_get_value("7");
  }
  function set_include_hidden($value)
  {
    return $this->_set_value("7", $value);
  }
  function begin_index()
  {
    return $this->_get_value("9");
  }
  function set_begin_index($value)
  {
    return $this->_set_value("9", $value);
  }
}
class PublicPeopleSearchResult extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["PublicPeopleSearchResult"]["1"] = "ProfileLite";
    $this->values["1"] = "";
    self::$fieldNames["PublicPeopleSearchResult"]["1"] = "public_people";
    self::$fields["PublicPeopleSearchResult"]["2"] = "ProfileLite";
    $this->values["2"] = "";
    self::$fieldNames["PublicPeopleSearchResult"]["2"] = "creator";
  }
  function public_people()
  {
    return $this->_get_value("1");
  }
  function set_public_people($value)
  {
    return $this->_set_value("1", $value);
  }
  function creator()
  {
    return $this->_get_value("2");
  }
  function set_creator($value)
  {
    return $this->_set_value("2", $value);
  }
}
class SearchResult_ResultType extends PBEnum
{
  const TAG  = 0;
  const ITEM  = 1;
  const USER  = 2;
  const PUBLIC_PEOPLE  = 3;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "TAG",
			1 => "ITEM",
			2 => "USER",
			3 => "PUBLIC_PEOPLE");
   }
}
class SearchResult extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["SearchResult"]["2"] = "SearchResult_ResultType";
    $this->values["2"] = "";
    self::$fieldNames["SearchResult"]["2"] = "result_type";
    self::$fields["SearchResult"]["1"] = "PBString";
    $this->values["1"] = array();
    self::$fieldNames["SearchResult"]["1"] = "tag_label";
    self::$fields["SearchResult"]["3"] = "ItemResult";
    $this->values["3"] = array();
    self::$fieldNames["SearchResult"]["3"] = "item";
    self::$fields["SearchResult"]["4"] = "ProfileLite";
    $this->values["4"] = array();
    self::$fieldNames["SearchResult"]["4"] = "user";
    self::$fields["SearchResult"]["5"] = "PublicPeopleSearchResult";
    $this->values["5"] = array();
    self::$fieldNames["SearchResult"]["5"] = "public_people";
  }
  function result_type()
  {
    return $this->_get_value("2");
  }
  function set_result_type($value)
  {
    return $this->_set_value("2", $value);
  }
  function result_type_string()
  {
    return $this->values["2"]->get_description();
  }
  function tag_label($offset)
  {
    $v = $this->_get_arr_value("1", $offset);
    return $v->get_value();
  }
  function append_tag_label($value)
  {
    $v = $this->_add_arr_value("1");
    $v->set_value($value);
  }
  function set_tag_label($index, $value)
  {
    $v = new self::$fields["SearchResult"]["1"]();
    $v->set_value($value);
    $this->_set_arr_value("1", $index, $v);
  }
  function remove_last_tag_label()
  {
    $this->_remove_last_arr_value("1");
  }
  function tag_labels_size()
  {
    return $this->_get_arr_size("1");
  }
  function get_tag_labels()
  {
    return $this->_get_value("1");
  }
  function item($offset)
  {
    return $this->_get_arr_value("3", $offset);
  }
  function add_item()
  {
    return $this->_add_arr_value("3");
  }
  function set_item($index, $value)
  {
    $this->_set_arr_value("3", $index, $value);
  }
  function set_all_items($values)
  {
    return $this->_set_arr_values("3", $values);
  }
  function remove_last_item()
  {
    $this->_remove_last_arr_value("3");
  }
  function items_size()
  {
    return $this->_get_arr_size("3");
  }
  function get_items()
  {
    return $this->_get_value("3");
  }
  function user($offset)
  {
    return $this->_get_arr_value("4", $offset);
  }
  function add_user()
  {
    return $this->_add_arr_value("4");
  }
  function set_user($index, $value)
  {
    $this->_set_arr_value("4", $index, $value);
  }
  function set_all_users($values)
  {
    return $this->_set_arr_values("4", $values);
  }
  function remove_last_user()
  {
    $this->_remove_last_arr_value("4");
  }
  function users_size()
  {
    return $this->_get_arr_size("4");
  }
  function get_users()
  {
    return $this->_get_value("4");
  }
  function public_people($offset)
  {
    return $this->_get_arr_value("5", $offset);
  }
  function add_public_people()
  {
    return $this->_add_arr_value("5");
  }
  function set_public_people($index, $value)
  {
    $this->_set_arr_value("5", $index, $value);
  }
  function set_all_public_peoples($values)
  {
    return $this->_set_arr_values("5", $values);
  }
  function remove_last_public_people()
  {
    $this->_remove_last_arr_value("5");
  }
  function public_peoples_size()
  {
    return $this->_get_arr_size("5");
  }
  function get_public_peoples()
  {
    return $this->_get_value("5");
  }
}
class TagSearchReply_ErrorType extends PBEnum
{
  const SUCCESS  = 0;
  const FAIL  = 1;
  const FAIL_SYS  = 2;
  const FAIL_NETWORK  = 3;
  const FAIL_AUTH  = 4;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "SUCCESS",
			1 => "FAIL",
			2 => "FAIL_SYS",
			3 => "FAIL_NETWORK",
			4 => "FAIL_AUTH");
   }
}
class TagSearchReply extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["TagSearchReply"]["1"] = "TagSearchReply_ErrorType";
    $this->values["1"] = "";
    self::$fieldNames["TagSearchReply"]["1"] = "error_no";
    self::$fields["TagSearchReply"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["TagSearchReply"]["2"] = "error_msg";
    self::$fields["TagSearchReply"]["3"] = "SearchResult";
    $this->values["3"] = "";
    self::$fieldNames["TagSearchReply"]["3"] = "result";
  }
  function error_no()
  {
    return $this->_get_value("1");
  }
  function set_error_no($value)
  {
    return $this->_set_value("1", $value);
  }
  function error_no_string()
  {
    return $this->values["1"]->get_description();
  }
  function error_msg()
  {
    return $this->_get_value("2");
  }
  function set_error_msg($value)
  {
    return $this->_set_value("2", $value);
  }
  function result()
  {
    return $this->_get_value("3");
  }
  function set_result($value)
  {
    return $this->_set_value("3", $value);
  }
}
class UserSearchRequest extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["UserSearchRequest"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["UserSearchRequest"]["1"] = "uid";
    self::$fields["UserSearchRequest"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["UserSearchRequest"]["2"] = "session_key";
    self::$fields["UserSearchRequest"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["UserSearchRequest"]["3"] = "keywords";
    self::$fields["UserSearchRequest"]["6"] = "PBInt";
    $this->values["6"] = "";
    self::$fieldNames["UserSearchRequest"]["6"] = "begin_index";
    self::$fields["UserSearchRequest"]["5"] = "PBInt";
    $this->values["5"] = "";
    self::$fieldNames["UserSearchRequest"]["5"] = "limit";
  }
  function uid()
  {
    return $this->_get_value("1");
  }
  function set_uid($value)
  {
    return $this->_set_value("1", $value);
  }
  function session_key()
  {
    return $this->_get_value("2");
  }
  function set_session_key($value)
  {
    return $this->_set_value("2", $value);
  }
  function keywords()
  {
    return $this->_get_value("3");
  }
  function set_keywords($value)
  {
    return $this->_set_value("3", $value);
  }
  function begin_index()
  {
    return $this->_get_value("6");
  }
  function set_begin_index($value)
  {
    return $this->_set_value("6", $value);
  }
  function limit()
  {
    return $this->_get_value("5");
  }
  function set_limit($value)
  {
    return $this->_set_value("5", $value);
  }
}
class UserSearchReply_ErrorType extends PBEnum
{
  const SUCCESS  = 0;
  const FAIL  = 1;
  const FAIL_SYS  = 2;
  const FAIL_NETWORK  = 3;
  const FAIL_AUTH  = 4;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "SUCCESS",
			1 => "FAIL",
			2 => "FAIL_SYS",
			3 => "FAIL_NETWORK",
			4 => "FAIL_AUTH");
   }
}
class UserSearchReply extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["UserSearchReply"]["1"] = "UserSearchReply_ErrorType";
    $this->values["1"] = "";
    self::$fieldNames["UserSearchReply"]["1"] = "error_no";
    self::$fields["UserSearchReply"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["UserSearchReply"]["2"] = "error_msg";
    self::$fields["UserSearchReply"]["3"] = "SearchResult";
    $this->values["3"] = "";
    self::$fieldNames["UserSearchReply"]["3"] = "result";
  }
  function error_no()
  {
    return $this->_get_value("1");
  }
  function set_error_no($value)
  {
    return $this->_set_value("1", $value);
  }
  function error_no_string()
  {
    return $this->values["1"]->get_description();
  }
  function error_msg()
  {
    return $this->_get_value("2");
  }
  function set_error_msg($value)
  {
    return $this->_set_value("2", $value);
  }
  function result()
  {
    return $this->_get_value("3");
  }
  function set_result($value)
  {
    return $this->_set_value("3", $value);
  }
}
class LocationSearchRequest extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["LocationSearchRequest"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["LocationSearchRequest"]["1"] = "uid";
    self::$fields["LocationSearchRequest"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["LocationSearchRequest"]["2"] = "session_key";
    self::$fields["LocationSearchRequest"]["3"] = "PB32Bit";
    $this->values["3"] = "";
    self::$fieldNames["LocationSearchRequest"]["3"] = "latitude";
    self::$fields["LocationSearchRequest"]["4"] = "PB32Bit";
    $this->values["4"] = "";
    self::$fieldNames["LocationSearchRequest"]["4"] = "longitude";
    self::$fields["LocationSearchRequest"]["5"] = "ItemType";
    $this->values["5"] = "";
    self::$fieldNames["LocationSearchRequest"]["5"] = "layer";
    self::$fields["LocationSearchRequest"]["6"] = "PB32Bit";
    $this->values["6"] = "";
    self::$fieldNames["LocationSearchRequest"]["6"] = "radius";
  }
  function uid()
  {
    return $this->_get_value("1");
  }
  function set_uid($value)
  {
    return $this->_set_value("1", $value);
  }
  function session_key()
  {
    return $this->_get_value("2");
  }
  function set_session_key($value)
  {
    return $this->_set_value("2", $value);
  }
  function latitude()
  {
    return $this->_get_value("3");
  }
  function set_latitude($value)
  {
    return $this->_set_value("3", $value);
  }
  function longitude()
  {
    return $this->_get_value("4");
  }
  function set_longitude($value)
  {
    return $this->_set_value("4", $value);
  }
  function layer()
  {
    return $this->_get_value("5");
  }
  function set_layer($value)
  {
    return $this->_set_value("5", $value);
  }
  function layer_string()
  {
    return $this->values["5"]->get_description();
  }
  function radius()
  {
    return $this->_get_value("6");
  }
  function set_radius($value)
  {
    return $this->_set_value("6", $value);
  }
}
class Place extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["Place"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["Place"]["1"] = "item_id";
    self::$fields["Place"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["Place"]["2"] = "name";
    self::$fields["Place"]["4"] = "PBString";
    $this->values["4"] = "";
    self::$fieldNames["Place"]["4"] = "description";
    self::$fields["Place"]["5"] = "PBString";
    $this->values["5"] = "";
    self::$fieldNames["Place"]["5"] = "thumb_picture_uri";
    self::$fields["Place"]["3"] = "Location";
    $this->values["3"] = "";
    self::$fieldNames["Place"]["3"] = "address";
    self::$fields["Place"]["6"] = "ProfileLite";
    $this->values["6"] = array();
    self::$fieldNames["Place"]["6"] = "friends_was_here";
  }
  function item_id()
  {
    return $this->_get_value("1");
  }
  function set_item_id($value)
  {
    return $this->_set_value("1", $value);
  }
  function name()
  {
    return $this->_get_value("2");
  }
  function set_name($value)
  {
    return $this->_set_value("2", $value);
  }
  function description()
  {
    return $this->_get_value("4");
  }
  function set_description($value)
  {
    return $this->_set_value("4", $value);
  }
  function thumb_picture_uri()
  {
    return $this->_get_value("5");
  }
  function set_thumb_picture_uri($value)
  {
    return $this->_set_value("5", $value);
  }
  function address()
  {
    return $this->_get_value("3");
  }
  function set_address($value)
  {
    return $this->_set_value("3", $value);
  }
  function friends_was_here($offset)
  {
    return $this->_get_arr_value("6", $offset);
  }
  function add_friends_was_here()
  {
    return $this->_add_arr_value("6");
  }
  function set_friends_was_here($index, $value)
  {
    $this->_set_arr_value("6", $index, $value);
  }
  function set_all_friends_was_heres($values)
  {
    return $this->_set_arr_values("6", $values);
  }
  function remove_last_friends_was_here()
  {
    $this->_remove_last_arr_value("6");
  }
  function friends_was_heres_size()
  {
    return $this->_get_arr_size("6");
  }
  function get_friends_was_heres()
  {
    return $this->_get_value("6");
  }
}
class LocationSearchReply_ErrorType extends PBEnum
{
  const SUCCESS  = 0;
  const FAIL  = 1;
  const FAIL_SYS  = 2;
  const FAIL_NETWORK  = 3;
  const FAIL_AUTH  = 4;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "SUCCESS",
			1 => "FAIL",
			2 => "FAIL_SYS",
			3 => "FAIL_NETWORK",
			4 => "FAIL_AUTH");
   }
}
class LocationSearchReply extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["LocationSearchReply"]["1"] = "LocationSearchReply_ErrorType";
    $this->values["1"] = "";
    self::$fieldNames["LocationSearchReply"]["1"] = "error_no";
    self::$fields["LocationSearchReply"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["LocationSearchReply"]["2"] = "error_msg";
    self::$fields["LocationSearchReply"]["3"] = "Place";
    $this->values["3"] = array();
    self::$fieldNames["LocationSearchReply"]["3"] = "place";
  }
  function error_no()
  {
    return $this->_get_value("1");
  }
  function set_error_no($value)
  {
    return $this->_set_value("1", $value);
  }
  function error_no_string()
  {
    return $this->values["1"]->get_description();
  }
  function error_msg()
  {
    return $this->_get_value("2");
  }
  function set_error_msg($value)
  {
    return $this->_set_value("2", $value);
  }
  function place($offset)
  {
    return $this->_get_arr_value("3", $offset);
  }
  function add_place()
  {
    return $this->_add_arr_value("3");
  }
  function set_place($index, $value)
  {
    $this->_set_arr_value("3", $index, $value);
  }
  function set_all_places($values)
  {
    return $this->_set_arr_values("3", $values);
  }
  function remove_last_place()
  {
    $this->_remove_last_arr_value("3");
  }
  function places_size()
  {
    return $this->_get_arr_size("3");
  }
  function get_places()
  {
    return $this->_get_value("3");
  }
}
class MovieShowtimeGetRequest extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["MovieShowtimeGetRequest"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["MovieShowtimeGetRequest"]["3"] = "uid";
    self::$fields["MovieShowtimeGetRequest"]["4"] = "PBString";
    $this->values["4"] = "";
    self::$fieldNames["MovieShowtimeGetRequest"]["4"] = "session_key";
    self::$fields["MovieShowtimeGetRequest"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["MovieShowtimeGetRequest"]["1"] = "movie_id";
    self::$fields["MovieShowtimeGetRequest"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["MovieShowtimeGetRequest"]["2"] = "cinema_id";
  }
  function uid()
  {
    return $this->_get_value("3");
  }
  function set_uid($value)
  {
    return $this->_set_value("3", $value);
  }
  function session_key()
  {
    return $this->_get_value("4");
  }
  function set_session_key($value)
  {
    return $this->_set_value("4", $value);
  }
  function movie_id()
  {
    return $this->_get_value("1");
  }
  function set_movie_id($value)
  {
    return $this->_set_value("1", $value);
  }
  function cinema_id()
  {
    return $this->_get_value("2");
  }
  function set_cinema_id($value)
  {
    return $this->_set_value("2", $value);
  }
}
class MovieShowtimeGetReply_ErrorNo extends PBEnum
{
  const SUCCESS  = 1;
  const EXISTS  = 2;
  const NOT_EXISTS  = 3;
  const FAIL  = 4;
  const FAIL_AUTH  = 5;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			1 => "SUCCESS",
			2 => "EXISTS",
			3 => "NOT_EXISTS",
			4 => "FAIL",
			5 => "FAIL_AUTH");
   }
}
class MovieShowtimeGetReply extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["MovieShowtimeGetReply"]["1"] = "MovieShowtimeGetReply_ErrorNo";
    $this->values["1"] = "";
    self::$fieldNames["MovieShowtimeGetReply"]["1"] = "error_no";
    self::$fields["MovieShowtimeGetReply"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["MovieShowtimeGetReply"]["2"] = "error_msg";
    self::$fields["MovieShowtimeGetReply"]["3"] = "MovieShowtime";
    $this->values["3"] = array();
    self::$fieldNames["MovieShowtimeGetReply"]["3"] = "showtime";
  }
  function error_no()
  {
    return $this->_get_value("1");
  }
  function set_error_no($value)
  {
    return $this->_set_value("1", $value);
  }
  function error_no_string()
  {
    return $this->values["1"]->get_description();
  }
  function error_msg()
  {
    return $this->_get_value("2");
  }
  function set_error_msg($value)
  {
    return $this->_set_value("2", $value);
  }
  function showtime($offset)
  {
    return $this->_get_arr_value("3", $offset);
  }
  function add_showtime()
  {
    return $this->_add_arr_value("3");
  }
  function set_showtime($index, $value)
  {
    $this->_set_arr_value("3", $index, $value);
  }
  function set_all_showtimes($values)
  {
    return $this->_set_arr_values("3", $values);
  }
  function remove_last_showtime()
  {
    $this->_remove_last_arr_value("3");
  }
  function showtimes_size()
  {
    return $this->_get_arr_size("3");
  }
  function get_showtimes()
  {
    return $this->_get_value("3");
  }
}
class PublicPeopleSearchRequest extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["PublicPeopleSearchRequest"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["PublicPeopleSearchRequest"]["1"] = "uid";
    self::$fields["PublicPeopleSearchRequest"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["PublicPeopleSearchRequest"]["2"] = "session_key";
    self::$fields["PublicPeopleSearchRequest"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["PublicPeopleSearchRequest"]["3"] = "keywords";
    self::$fields["PublicPeopleSearchRequest"]["6"] = "PBInt";
    $this->values["6"] = "";
    self::$fieldNames["PublicPeopleSearchRequest"]["6"] = "before_timestamp";
    self::$fields["PublicPeopleSearchRequest"]["5"] = "PBInt";
    $this->values["5"] = "";
    self::$fieldNames["PublicPeopleSearchRequest"]["5"] = "limit";
  }
  function uid()
  {
    return $this->_get_value("1");
  }
  function set_uid($value)
  {
    return $this->_set_value("1", $value);
  }
  function session_key()
  {
    return $this->_get_value("2");
  }
  function set_session_key($value)
  {
    return $this->_set_value("2", $value);
  }
  function keywords()
  {
    return $this->_get_value("3");
  }
  function set_keywords($value)
  {
    return $this->_set_value("3", $value);
  }
  function before_timestamp()
  {
    return $this->_get_value("6");
  }
  function set_before_timestamp($value)
  {
    return $this->_set_value("6", $value);
  }
  function limit()
  {
    return $this->_get_value("5");
  }
  function set_limit($value)
  {
    return $this->_set_value("5", $value);
  }
}
class PublicPeopleSearchReply_ErrorType extends PBEnum
{
  const SUCCESS  = 0;
  const FAIL  = 1;
  const FAIL_SYS  = 2;
  const FAIL_NETWORK  = 3;
  const FAIL_AUTH  = 4;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "SUCCESS",
			1 => "FAIL",
			2 => "FAIL_SYS",
			3 => "FAIL_NETWORK",
			4 => "FAIL_AUTH");
   }
}
class PublicPeopleSearchReply extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["PublicPeopleSearchReply"]["1"] = "PublicPeopleSearchReply_ErrorType";
    $this->values["1"] = "";
    self::$fieldNames["PublicPeopleSearchReply"]["1"] = "error_no";
    self::$fields["PublicPeopleSearchReply"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["PublicPeopleSearchReply"]["2"] = "error_msg";
    self::$fields["PublicPeopleSearchReply"]["3"] = "SearchResult";
    $this->values["3"] = "";
    self::$fieldNames["PublicPeopleSearchReply"]["3"] = "public_people";
  }
  function error_no()
  {
    return $this->_get_value("1");
  }
  function set_error_no($value)
  {
    return $this->_set_value("1", $value);
  }
  function error_no_string()
  {
    return $this->values["1"]->get_description();
  }
  function error_msg()
  {
    return $this->_get_value("2");
  }
  function set_error_msg($value)
  {
    return $this->_set_value("2", $value);
  }
  function public_people()
  {
    return $this->_get_value("3");
  }
  function set_public_people($value)
  {
    return $this->_set_value("3", $value);
  }
}
class UserPostGetRequest extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["UserPostGetRequest"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["UserPostGetRequest"]["1"] = "uid";
    self::$fields["UserPostGetRequest"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["UserPostGetRequest"]["2"] = "session_key";
    self::$fields["UserPostGetRequest"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["UserPostGetRequest"]["3"] = "target";
    self::$fields["UserPostGetRequest"]["4"] = "PBInt";
    $this->values["4"] = "";
    self::$fieldNames["UserPostGetRequest"]["4"] = "after_timestamp";
    self::$fields["UserPostGetRequest"]["5"] = "PBInt";
    $this->values["5"] = "";
    self::$fieldNames["UserPostGetRequest"]["5"] = "before_timestamp";
    self::$fields["UserPostGetRequest"]["6"] = "PBInt";
    $this->values["6"] = "";
    self::$fieldNames["UserPostGetRequest"]["6"] = "num_items";
    self::$fields["UserPostGetRequest"]["7"] = "PBBool";
    $this->values["7"] = "";
    self::$fieldNames["UserPostGetRequest"]["7"] = "get_all";
  }
  function uid()
  {
    return $this->_get_value("1");
  }
  function set_uid($value)
  {
    return $this->_set_value("1", $value);
  }
  function session_key()
  {
    return $this->_get_value("2");
  }
  function set_session_key($value)
  {
    return $this->_set_value("2", $value);
  }
  function target()
  {
    return $this->_get_value("3");
  }
  function set_target($value)
  {
    return $this->_set_value("3", $value);
  }
  function after_timestamp()
  {
    return $this->_get_value("4");
  }
  function set_after_timestamp($value)
  {
    return $this->_set_value("4", $value);
  }
  function before_timestamp()
  {
    return $this->_get_value("5");
  }
  function set_before_timestamp($value)
  {
    return $this->_set_value("5", $value);
  }
  function num_items()
  {
    return $this->_get_value("6");
  }
  function set_num_items($value)
  {
    return $this->_set_value("6", $value);
  }
  function get_all()
  {
    return $this->_get_value("7");
  }
  function set_get_all($value)
  {
    return $this->_set_value("7", $value);
  }
}
class Post extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["Post"]["1"] = "Item";
    $this->values["1"] = "";
    self::$fieldNames["Post"]["1"] = "item";
    self::$fields["Post"]["2"] = "StreamAction";
    $this->values["2"] = "";
    self::$fieldNames["Post"]["2"] = "action";
    self::$fields["Post"]["3"] = "PBInt";
    $this->values["3"] = "";
    self::$fieldNames["Post"]["3"] = "num_thanks";
  }
  function item()
  {
    return $this->_get_value("1");
  }
  function set_item($value)
  {
    return $this->_set_value("1", $value);
  }
  function action()
  {
    return $this->_get_value("2");
  }
  function set_action($value)
  {
    return $this->_set_value("2", $value);
  }
  function num_thanks()
  {
    return $this->_get_value("3");
  }
  function set_num_thanks($value)
  {
    return $this->_set_value("3", $value);
  }
}
class UserPostGetReply_ErrorNo extends PBEnum
{
  const SUCCESS  = 1;
  const EXISTS  = 2;
  const NOT_EXISTS  = 3;
  const FAIL  = 4;
  const FAIL_AUTH  = 5;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			1 => "SUCCESS",
			2 => "EXISTS",
			3 => "NOT_EXISTS",
			4 => "FAIL",
			5 => "FAIL_AUTH");
   }
}
class UserPostGetReply extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["UserPostGetReply"]["1"] = "UserPostGetReply_ErrorNo";
    $this->values["1"] = "";
    self::$fieldNames["UserPostGetReply"]["1"] = "error_no";
    self::$fields["UserPostGetReply"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["UserPostGetReply"]["2"] = "error_msg";
    self::$fields["UserPostGetReply"]["3"] = "Post";
    $this->values["3"] = array();
    self::$fieldNames["UserPostGetReply"]["3"] = "post";
    self::$fields["UserPostGetReply"]["4"] = "ItemLite";
    $this->values["4"] = array();
    self::$fieldNames["UserPostGetReply"]["4"] = "item_lite";
  }
  function error_no()
  {
    return $this->_get_value("1");
  }
  function set_error_no($value)
  {
    return $this->_set_value("1", $value);
  }
  function error_no_string()
  {
    return $this->values["1"]->get_description();
  }
  function error_msg()
  {
    return $this->_get_value("2");
  }
  function set_error_msg($value)
  {
    return $this->_set_value("2", $value);
  }
  function post($offset)
  {
    return $this->_get_arr_value("3", $offset);
  }
  function add_post()
  {
    return $this->_add_arr_value("3");
  }
  function set_post($index, $value)
  {
    $this->_set_arr_value("3", $index, $value);
  }
  function set_all_posts($values)
  {
    return $this->_set_arr_values("3", $values);
  }
  function remove_last_post()
  {
    $this->_remove_last_arr_value("3");
  }
  function posts_size()
  {
    return $this->_get_arr_size("3");
  }
  function get_posts()
  {
    return $this->_get_value("3");
  }
  function item_lite($offset)
  {
    return $this->_get_arr_value("4", $offset);
  }
  function add_item_lite()
  {
    return $this->_add_arr_value("4");
  }
  function set_item_lite($index, $value)
  {
    $this->_set_arr_value("4", $index, $value);
  }
  function set_all_item_lites($values)
  {
    return $this->_set_arr_values("4", $values);
  }
  function remove_last_item_lite()
  {
    $this->_remove_last_arr_value("4");
  }
  function item_lites_size()
  {
    return $this->_get_arr_size("4");
  }
  function get_item_lites()
  {
    return $this->_get_value("4");
  }
}
class UserCheckinRequest extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["UserCheckinRequest"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["UserCheckinRequest"]["1"] = "uid";
    self::$fields["UserCheckinRequest"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["UserCheckinRequest"]["2"] = "session_key";
    self::$fields["UserCheckinRequest"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["UserCheckinRequest"]["3"] = "place_id";
  }
  function uid()
  {
    return $this->_get_value("1");
  }
  function set_uid($value)
  {
    return $this->_set_value("1", $value);
  }
  function session_key()
  {
    return $this->_get_value("2");
  }
  function set_session_key($value)
  {
    return $this->_set_value("2", $value);
  }
  function place_id()
  {
    return $this->_get_value("3");
  }
  function set_place_id($value)
  {
    return $this->_set_value("3", $value);
  }
}
class NearByUser extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["NearByUser"]["1"] = "ProfileLite";
    $this->values["1"] = array();
    self::$fieldNames["NearByUser"]["1"] = "profile";
    self::$fields["NearByUser"]["2"] = "Place";
    $this->values["2"] = "";
    self::$fieldNames["NearByUser"]["2"] = "place";
  }
  function profile($offset)
  {
    return $this->_get_arr_value("1", $offset);
  }
  function add_profile()
  {
    return $this->_add_arr_value("1");
  }
  function set_profile($index, $value)
  {
    $this->_set_arr_value("1", $index, $value);
  }
  function set_all_profiles($values)
  {
    return $this->_set_arr_values("1", $values);
  }
  function remove_last_profile()
  {
    $this->_remove_last_arr_value("1");
  }
  function profiles_size()
  {
    return $this->_get_arr_size("1");
  }
  function get_profiles()
  {
    return $this->_get_value("1");
  }
  function place()
  {
    return $this->_get_value("2");
  }
  function set_place($value)
  {
    return $this->_set_value("2", $value);
  }
}
class UserCheckinReply_ErrorNo extends PBEnum
{
  const SUCCESS  = 1;
  const EXISTS  = 2;
  const NOT_EXISTS  = 3;
  const FAIL  = 4;
  const FAIL_AUTH  = 5;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			1 => "SUCCESS",
			2 => "EXISTS",
			3 => "NOT_EXISTS",
			4 => "FAIL",
			5 => "FAIL_AUTH");
   }
}
class UserCheckinReply extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["UserCheckinReply"]["1"] = "UserCheckinReply_ErrorNo";
    $this->values["1"] = "";
    self::$fieldNames["UserCheckinReply"]["1"] = "error_no";
    self::$fields["UserCheckinReply"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["UserCheckinReply"]["2"] = "error_msg";
    self::$fields["UserCheckinReply"]["3"] = "NearByUser";
    $this->values["3"] = array();
    self::$fieldNames["UserCheckinReply"]["3"] = "users";
  }
  function error_no()
  {
    return $this->_get_value("1");
  }
  function set_error_no($value)
  {
    return $this->_set_value("1", $value);
  }
  function error_no_string()
  {
    return $this->values["1"]->get_description();
  }
  function error_msg()
  {
    return $this->_get_value("2");
  }
  function set_error_msg($value)
  {
    return $this->_set_value("2", $value);
  }
  function users($offset)
  {
    return $this->_get_arr_value("3", $offset);
  }
  function add_users()
  {
    return $this->_add_arr_value("3");
  }
  function set_users($index, $value)
  {
    $this->_set_arr_value("3", $index, $value);
  }
  function set_all_userss($values)
  {
    return $this->_set_arr_values("3", $values);
  }
  function remove_last_users()
  {
    $this->_remove_last_arr_value("3");
  }
  function userss_size()
  {
    return $this->_get_arr_size("3");
  }
  function get_userss()
  {
    return $this->_get_value("3");
  }
}
class ContentTrendingRequest extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["ContentTrendingRequest"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["ContentTrendingRequest"]["1"] = "uid";
    self::$fields["ContentTrendingRequest"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["ContentTrendingRequest"]["2"] = "sessionkey";
    self::$fields["ContentTrendingRequest"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["ContentTrendingRequest"]["3"] = "content_id";
    self::$fields["ContentTrendingRequest"]["4"] = "PBBool";
    $this->values["4"] = "";
    self::$fieldNames["ContentTrendingRequest"]["4"] = "refesh_list";
  }
  function uid()
  {
    return $this->_get_value("1");
  }
  function set_uid($value)
  {
    return $this->_set_value("1", $value);
  }
  function sessionkey()
  {
    return $this->_get_value("2");
  }
  function set_sessionkey($value)
  {
    return $this->_set_value("2", $value);
  }
  function content_id()
  {
    return $this->_get_value("3");
  }
  function set_content_id($value)
  {
    return $this->_set_value("3", $value);
  }
  function refesh_list()
  {
    return $this->_get_value("4");
  }
  function set_refesh_list($value)
  {
    return $this->_set_value("4", $value);
  }
}
class ContentTrendingReply_ErrorNo extends PBEnum
{
  const SUCCESS  = 1;
  const EXISTS  = 2;
  const NOT_EXISTS  = 3;
  const FAIL  = 4;
  const FAIL_AUTH  = 5;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			1 => "SUCCESS",
			2 => "EXISTS",
			3 => "NOT_EXISTS",
			4 => "FAIL",
			5 => "FAIL_AUTH");
   }
}
class ContentTrendingReply extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["ContentTrendingReply"]["1"] = "ContentTrendingReply_ErrorNo";
    $this->values["1"] = "";
    self::$fieldNames["ContentTrendingReply"]["1"] = "error_no";
    self::$fields["ContentTrendingReply"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["ContentTrendingReply"]["2"] = "error_msg";
    self::$fields["ContentTrendingReply"]["3"] = "ItemLite";
    $this->values["3"] = array();
    self::$fieldNames["ContentTrendingReply"]["3"] = "item";
  }
  function error_no()
  {
    return $this->_get_value("1");
  }
  function set_error_no($value)
  {
    return $this->_set_value("1", $value);
  }
  function error_no_string()
  {
    return $this->values["1"]->get_description();
  }
  function error_msg()
  {
    return $this->_get_value("2");
  }
  function set_error_msg($value)
  {
    return $this->_set_value("2", $value);
  }
  function item($offset)
  {
    return $this->_get_arr_value("3", $offset);
  }
  function add_item()
  {
    return $this->_add_arr_value("3");
  }
  function set_item($index, $value)
  {
    $this->_set_arr_value("3", $index, $value);
  }
  function set_all_items($values)
  {
    return $this->_set_arr_values("3", $values);
  }
  function remove_last_item()
  {
    $this->_remove_last_arr_value("3");
  }
  function items_size()
  {
    return $this->_get_arr_size("3");
  }
  function get_items()
  {
    return $this->_get_value("3");
  }
}
class NearbyPlaceGetRequest extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["NearbyPlaceGetRequest"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["NearbyPlaceGetRequest"]["1"] = "uid";
    self::$fields["NearbyPlaceGetRequest"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["NearbyPlaceGetRequest"]["2"] = "session_key";
    self::$fields["NearbyPlaceGetRequest"]["3"] = "PB32Bit";
    $this->values["3"] = "";
    self::$fieldNames["NearbyPlaceGetRequest"]["3"] = "latitude";
    self::$fields["NearbyPlaceGetRequest"]["4"] = "PB32Bit";
    $this->values["4"] = "";
    self::$fieldNames["NearbyPlaceGetRequest"]["4"] = "longitude";
    self::$fields["NearbyPlaceGetRequest"]["5"] = "ItemType";
    $this->values["5"] = "";
    self::$fieldNames["NearbyPlaceGetRequest"]["5"] = "layer";
    self::$fields["NearbyPlaceGetRequest"]["7"] = "PBString";
    $this->values["7"] = "";
    self::$fieldNames["NearbyPlaceGetRequest"]["7"] = "content_id";
    self::$fields["NearbyPlaceGetRequest"]["6"] = "PB32Bit";
    $this->values["6"] = "";
    self::$fieldNames["NearbyPlaceGetRequest"]["6"] = "radius";
  }
  function uid()
  {
    return $this->_get_value("1");
  }
  function set_uid($value)
  {
    return $this->_set_value("1", $value);
  }
  function session_key()
  {
    return $this->_get_value("2");
  }
  function set_session_key($value)
  {
    return $this->_set_value("2", $value);
  }
  function latitude()
  {
    return $this->_get_value("3");
  }
  function set_latitude($value)
  {
    return $this->_set_value("3", $value);
  }
  function longitude()
  {
    return $this->_get_value("4");
  }
  function set_longitude($value)
  {
    return $this->_set_value("4", $value);
  }
  function layer()
  {
    return $this->_get_value("5");
  }
  function set_layer($value)
  {
    return $this->_set_value("5", $value);
  }
  function layer_string()
  {
    return $this->values["5"]->get_description();
  }
  function content_id()
  {
    return $this->_get_value("7");
  }
  function set_content_id($value)
  {
    return $this->_set_value("7", $value);
  }
  function radius()
  {
    return $this->_get_value("6");
  }
  function set_radius($value)
  {
    return $this->_set_value("6", $value);
  }
}
class NearbyPlaceGetReply_ErrorType extends PBEnum
{
  const SUCCESS  = 0;
  const FAIL  = 1;
  const FAIL_SYS  = 2;
  const FAIL_NETWORK  = 3;
  const FAIL_AUTH  = 4;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "SUCCESS",
			1 => "FAIL",
			2 => "FAIL_SYS",
			3 => "FAIL_NETWORK",
			4 => "FAIL_AUTH");
   }
}
class NearbyPlaceGetReply extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["NearbyPlaceGetReply"]["1"] = "NearbyPlaceGetReply_ErrorType";
    $this->values["1"] = "";
    self::$fieldNames["NearbyPlaceGetReply"]["1"] = "error_no";
    self::$fields["NearbyPlaceGetReply"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["NearbyPlaceGetReply"]["2"] = "error_msg";
    self::$fields["NearbyPlaceGetReply"]["3"] = "Place";
    $this->values["3"] = array();
    self::$fieldNames["NearbyPlaceGetReply"]["3"] = "place";
  }
  function error_no()
  {
    return $this->_get_value("1");
  }
  function set_error_no($value)
  {
    return $this->_set_value("1", $value);
  }
  function error_no_string()
  {
    return $this->values["1"]->get_description();
  }
  function error_msg()
  {
    return $this->_get_value("2");
  }
  function set_error_msg($value)
  {
    return $this->_set_value("2", $value);
  }
  function place($offset)
  {
    return $this->_get_arr_value("3", $offset);
  }
  function add_place()
  {
    return $this->_add_arr_value("3");
  }
  function set_place($index, $value)
  {
    $this->_set_arr_value("3", $index, $value);
  }
  function set_all_places($values)
  {
    return $this->_set_arr_values("3", $values);
  }
  function remove_last_place()
  {
    $this->_remove_last_arr_value("3");
  }
  function places_size()
  {
    return $this->_get_arr_size("3");
  }
  function get_places()
  {
    return $this->_get_value("3");
  }
}
class ItemFilterRequest_FilterType extends PBEnum
{
  const GENRE  = 0;
  const FORMAT  = 1;
  const ACTOR  = 2;
  const DIRECTOR  = 3;
  const WRITER  = 4;
  const RELATED_PEOPLE  = 5;
  const STATUS  = 6;
  const AUTHOR  = 7;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "GENRE",
			1 => "FORMAT",
			2 => "ACTOR",
			3 => "DIRECTOR",
			4 => "WRITER",
			5 => "RELATED_PEOPLE",
			6 => "STATUS",
			7 => "AUTHOR");
   }
}
class ItemFilterRequest extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["ItemFilterRequest"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["ItemFilterRequest"]["1"] = "uid";
    self::$fields["ItemFilterRequest"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["ItemFilterRequest"]["2"] = "session_key";
    self::$fields["ItemFilterRequest"]["3"] = "ItemFilterRequest_FilterType";
    $this->values["3"] = "";
    self::$fieldNames["ItemFilterRequest"]["3"] = "filter_by";
    self::$fields["ItemFilterRequest"]["4"] = "MovieFormat";
    $this->values["4"] = "";
    self::$fieldNames["ItemFilterRequest"]["4"] = "format";
    self::$fields["ItemFilterRequest"]["5"] = "ItemType";
    $this->values["5"] = "";
    self::$fieldNames["ItemFilterRequest"]["5"] = "item_type";
    self::$fields["ItemFilterRequest"]["6"] = "PBString";
    $this->values["6"] = "";
    self::$fieldNames["ItemFilterRequest"]["6"] = "filter_input";
    self::$fields["ItemFilterRequest"]["7"] = "PBInt";
    $this->values["7"] = "";
    self::$fieldNames["ItemFilterRequest"]["7"] = "num_items";
    self::$fields["ItemFilterRequest"]["8"] = "PBInt";
    $this->values["8"] = "";
    self::$fieldNames["ItemFilterRequest"]["8"] = "before_timestamp";
  }
  function uid()
  {
    return $this->_get_value("1");
  }
  function set_uid($value)
  {
    return $this->_set_value("1", $value);
  }
  function session_key()
  {
    return $this->_get_value("2");
  }
  function set_session_key($value)
  {
    return $this->_set_value("2", $value);
  }
  function filter_by()
  {
    return $this->_get_value("3");
  }
  function set_filter_by($value)
  {
    return $this->_set_value("3", $value);
  }
  function filter_by_string()
  {
    return $this->values["3"]->get_description();
  }
  function format()
  {
    return $this->_get_value("4");
  }
  function set_format($value)
  {
    return $this->_set_value("4", $value);
  }
  function format_string()
  {
    return $this->values["4"]->get_description();
  }
  function item_type()
  {
    return $this->_get_value("5");
  }
  function set_item_type($value)
  {
    return $this->_set_value("5", $value);
  }
  function item_type_string()
  {
    return $this->values["5"]->get_description();
  }
  function filter_input()
  {
    return $this->_get_value("6");
  }
  function set_filter_input($value)
  {
    return $this->_set_value("6", $value);
  }
  function num_items()
  {
    return $this->_get_value("7");
  }
  function set_num_items($value)
  {
    return $this->_set_value("7", $value);
  }
  function before_timestamp()
  {
    return $this->_get_value("8");
  }
  function set_before_timestamp($value)
  {
    return $this->_set_value("8", $value);
  }
}
class ItemFilterReply_ErrorType extends PBEnum
{
  const SUCCESS  = 0;
  const FAIL  = 1;
  const FAIL_SYS  = 2;
  const FAIL_NETWORK  = 3;
  const FAIL_AUTH  = 4;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "SUCCESS",
			1 => "FAIL",
			2 => "FAIL_SYS",
			3 => "FAIL_NETWORK",
			4 => "FAIL_AUTH");
   }
}
class ItemFilterReply extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["ItemFilterReply"]["1"] = "ItemFilterReply_ErrorType";
    $this->values["1"] = "";
    self::$fieldNames["ItemFilterReply"]["1"] = "error_no";
    self::$fields["ItemFilterReply"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["ItemFilterReply"]["2"] = "error_msg";
    self::$fields["ItemFilterReply"]["3"] = "ItemLite";
    $this->values["3"] = array();
    self::$fieldNames["ItemFilterReply"]["3"] = "items";
  }
  function error_no()
  {
    return $this->_get_value("1");
  }
  function set_error_no($value)
  {
    return $this->_set_value("1", $value);
  }
  function error_no_string()
  {
    return $this->values["1"]->get_description();
  }
  function error_msg()
  {
    return $this->_get_value("2");
  }
  function set_error_msg($value)
  {
    return $this->_set_value("2", $value);
  }
  function items($offset)
  {
    return $this->_get_arr_value("3", $offset);
  }
  function add_items()
  {
    return $this->_add_arr_value("3");
  }
  function set_items($index, $value)
  {
    $this->_set_arr_value("3", $index, $value);
  }
  function set_all_itemss($values)
  {
    return $this->_set_arr_values("3", $values);
  }
  function remove_last_items()
  {
    $this->_remove_last_arr_value("3");
  }
  function itemss_size()
  {
    return $this->_get_arr_size("3");
  }
  function get_itemss()
  {
    return $this->_get_value("3");
  }
}
class TrendingSuggestionRequest_TrendingType extends PBEnum
{
  const SHORT_TERM  = 0;
  const LONG_TERM  = 1;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "SHORT_TERM",
			1 => "LONG_TERM");
   }
}
class TrendingSuggestionRequest extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["TrendingSuggestionRequest"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["TrendingSuggestionRequest"]["1"] = "uid";
    self::$fields["TrendingSuggestionRequest"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["TrendingSuggestionRequest"]["2"] = "session_key";
    self::$fields["TrendingSuggestionRequest"]["3"] = "PBInt";
    $this->values["3"] = "";
    self::$fieldNames["TrendingSuggestionRequest"]["3"] = "num_items";
    self::$fields["TrendingSuggestionRequest"]["4"] = "TrendingSuggestionRequest_TrendingType";
    $this->values["4"] = "";
    self::$fieldNames["TrendingSuggestionRequest"]["4"] = "type";
    self::$fields["TrendingSuggestionRequest"]["5"] = "PBBool";
    $this->values["5"] = "";
    self::$fieldNames["TrendingSuggestionRequest"]["5"] = "refresh_list";
  }
  function uid()
  {
    return $this->_get_value("1");
  }
  function set_uid($value)
  {
    return $this->_set_value("1", $value);
  }
  function session_key()
  {
    return $this->_get_value("2");
  }
  function set_session_key($value)
  {
    return $this->_set_value("2", $value);
  }
  function num_items()
  {
    return $this->_get_value("3");
  }
  function set_num_items($value)
  {
    return $this->_set_value("3", $value);
  }
  function type()
  {
    return $this->_get_value("4");
  }
  function set_type($value)
  {
    return $this->_set_value("4", $value);
  }
  function type_string()
  {
    return $this->values["4"]->get_description();
  }
  function refresh_list()
  {
    return $this->_get_value("5");
  }
  function set_refresh_list($value)
  {
    return $this->_set_value("5", $value);
  }
}
class TrendingResult extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["TrendingResult"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["TrendingResult"]["1"] = "tag_label";
    self::$fields["TrendingResult"]["2"] = "PBInt";
    $this->values["2"] = "";
    self::$fieldNames["TrendingResult"]["2"] = "num_creates";
    self::$fields["TrendingResult"]["3"] = "PBInt";
    $this->values["3"] = "";
    self::$fieldNames["TrendingResult"]["3"] = "num_views";
    self::$fields["TrendingResult"]["4"] = "PBInt";
    $this->values["4"] = "";
    self::$fieldNames["TrendingResult"]["4"] = "num_likes";
    self::$fields["TrendingResult"]["5"] = "PBInt";
    $this->values["5"] = "";
    self::$fieldNames["TrendingResult"]["5"] = "num_shares";
  }
  function tag_label()
  {
    return $this->_get_value("1");
  }
  function set_tag_label($value)
  {
    return $this->_set_value("1", $value);
  }
  function num_creates()
  {
    return $this->_get_value("2");
  }
  function set_num_creates($value)
  {
    return $this->_set_value("2", $value);
  }
  function num_views()
  {
    return $this->_get_value("3");
  }
  function set_num_views($value)
  {
    return $this->_set_value("3", $value);
  }
  function num_likes()
  {
    return $this->_get_value("4");
  }
  function set_num_likes($value)
  {
    return $this->_set_value("4", $value);
  }
  function num_shares()
  {
    return $this->_get_value("5");
  }
  function set_num_shares($value)
  {
    return $this->_set_value("5", $value);
  }
}
class TrendingSuggestionReply_ErrorType extends PBEnum
{
  const SUCCESS  = 0;
  const FAIL  = 1;
  const FAIL_SYS  = 2;
  const FAIL_NETWORK  = 3;
  const FAIL_AUTH  = 4;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "SUCCESS",
			1 => "FAIL",
			2 => "FAIL_SYS",
			3 => "FAIL_NETWORK",
			4 => "FAIL_AUTH");
   }
}
class TrendingSuggestionReply extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["TrendingSuggestionReply"]["1"] = "TrendingSuggestionReply_ErrorType";
    $this->values["1"] = "";
    self::$fieldNames["TrendingSuggestionReply"]["1"] = "error_no";
    self::$fields["TrendingSuggestionReply"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["TrendingSuggestionReply"]["2"] = "error_msg";
    self::$fields["TrendingSuggestionReply"]["3"] = "TrendingResult";
    $this->values["3"] = array();
    self::$fieldNames["TrendingSuggestionReply"]["3"] = "result";
  }
  function error_no()
  {
    return $this->_get_value("1");
  }
  function set_error_no($value)
  {
    return $this->_set_value("1", $value);
  }
  function error_no_string()
  {
    return $this->values["1"]->get_description();
  }
  function error_msg()
  {
    return $this->_get_value("2");
  }
  function set_error_msg($value)
  {
    return $this->_set_value("2", $value);
  }
  function result($offset)
  {
    return $this->_get_arr_value("3", $offset);
  }
  function add_result()
  {
    return $this->_add_arr_value("3");
  }
  function set_result($index, $value)
  {
    $this->_set_arr_value("3", $index, $value);
  }
  function set_all_results($values)
  {
    return $this->_set_arr_values("3", $values);
  }
  function remove_last_result()
  {
    $this->_remove_last_arr_value("3");
  }
  function results_size()
  {
    return $this->_get_arr_size("3");
  }
  function get_results()
  {
    return $this->_get_value("3");
  }
}
class PriceLevelCRUDRequest_ActionType extends PBEnum
{
  const CREATE  = 0;
  const UPDATE  = 1;
  const REPLACE  = 2;
  const DELETE  = 3;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "CREATE",
			1 => "UPDATE",
			2 => "REPLACE",
			3 => "DELETE");
   }
}
class PriceLevelCRUDRequest extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["PriceLevelCRUDRequest"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["PriceLevelCRUDRequest"]["1"] = "uid";
    self::$fields["PriceLevelCRUDRequest"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["PriceLevelCRUDRequest"]["2"] = "session_key";
    self::$fields["PriceLevelCRUDRequest"]["4"] = "PriceLevelCRUDRequest_ActionType";
    $this->values["4"] = "";
    self::$fieldNames["PriceLevelCRUDRequest"]["4"] = "action";
    self::$fields["PriceLevelCRUDRequest"]["3"] = "PriceLevel";
    $this->values["3"] = array();
    self::$fieldNames["PriceLevelCRUDRequest"]["3"] = "price_level";
  }
  function uid()
  {
    return $this->_get_value("1");
  }
  function set_uid($value)
  {
    return $this->_set_value("1", $value);
  }
  function session_key()
  {
    return $this->_get_value("2");
  }
  function set_session_key($value)
  {
    return $this->_set_value("2", $value);
  }
  function action()
  {
    return $this->_get_value("4");
  }
  function set_action($value)
  {
    return $this->_set_value("4", $value);
  }
  function action_string()
  {
    return $this->values["4"]->get_description();
  }
  function price_level($offset)
  {
    return $this->_get_arr_value("3", $offset);
  }
  function add_price_level()
  {
    return $this->_add_arr_value("3");
  }
  function set_price_level($index, $value)
  {
    $this->_set_arr_value("3", $index, $value);
  }
  function set_all_price_levels($values)
  {
    return $this->_set_arr_values("3", $values);
  }
  function remove_last_price_level()
  {
    $this->_remove_last_arr_value("3");
  }
  function price_levels_size()
  {
    return $this->_get_arr_size("3");
  }
  function get_price_levels()
  {
    return $this->_get_value("3");
  }
}
class PriceLevelCRUDReply_ErrorNo extends PBEnum
{
  const SUCCESS  = 1;
  const EXISTS  = 2;
  const NOT_EXISTS  = 3;
  const FAIL  = 4;
  const FAIL_AUTH  = 5;
  const PERMISSION_DENIED  = 6;
  const OVERLAPPED_TIMESTAMP  = 7;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			1 => "SUCCESS",
			2 => "EXISTS",
			3 => "NOT_EXISTS",
			4 => "FAIL",
			5 => "FAIL_AUTH",
			6 => "PERMISSION_DENIED",
			7 => "OVERLAPPED_TIMESTAMP");
   }
}
class PriceLevelCRUDReply extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["PriceLevelCRUDReply"]["1"] = "PriceLevelCRUDReply_ErrorNo";
    $this->values["1"] = "";
    self::$fieldNames["PriceLevelCRUDReply"]["1"] = "error_no";
    self::$fields["PriceLevelCRUDReply"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["PriceLevelCRUDReply"]["2"] = "error_msg";
  }
  function error_no()
  {
    return $this->_get_value("1");
  }
  function set_error_no($value)
  {
    return $this->_set_value("1", $value);
  }
  function error_no_string()
  {
    return $this->values["1"]->get_description();
  }
  function error_msg()
  {
    return $this->_get_value("2");
  }
  function set_error_msg($value)
  {
    return $this->_set_value("2", $value);
  }
}
class PriceLevelGetRequest_GetType extends PBEnum
{
  const _LIST  = 0;
  const _DETAIL  = 1;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "_LIST",
			1 => "_DETAIL");
   }
}
class PriceLevelGetRequest extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["PriceLevelGetRequest"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["PriceLevelGetRequest"]["1"] = "uid";
    self::$fields["PriceLevelGetRequest"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["PriceLevelGetRequest"]["2"] = "session_key";
    self::$fields["PriceLevelGetRequest"]["5"] = "PriceLevelGetRequest_GetType";
    $this->values["5"] = "";
    self::$fieldNames["PriceLevelGetRequest"]["5"] = "type";
    self::$fields["PriceLevelGetRequest"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["PriceLevelGetRequest"]["3"] = "place_id";
    self::$fields["PriceLevelGetRequest"]["4"] = "PBString";
    $this->values["4"] = "";
    self::$fieldNames["PriceLevelGetRequest"]["4"] = "price_id";
  }
  function uid()
  {
    return $this->_get_value("1");
  }
  function set_uid($value)
  {
    return $this->_set_value("1", $value);
  }
  function session_key()
  {
    return $this->_get_value("2");
  }
  function set_session_key($value)
  {
    return $this->_set_value("2", $value);
  }
  function type()
  {
    return $this->_get_value("5");
  }
  function set_type($value)
  {
    return $this->_set_value("5", $value);
  }
  function type_string()
  {
    return $this->values["5"]->get_description();
  }
  function place_id()
  {
    return $this->_get_value("3");
  }
  function set_place_id($value)
  {
    return $this->_set_value("3", $value);
  }
  function price_id()
  {
    return $this->_get_value("4");
  }
  function set_price_id($value)
  {
    return $this->_set_value("4", $value);
  }
}
class PriceLevelGetReply_ErrorNo extends PBEnum
{
  const SUCCESS  = 1;
  const EXISTS  = 2;
  const NOT_EXISTS  = 3;
  const FAIL  = 4;
  const FAIL_AUTH  = 5;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			1 => "SUCCESS",
			2 => "EXISTS",
			3 => "NOT_EXISTS",
			4 => "FAIL",
			5 => "FAIL_AUTH");
   }
}
class PriceLevelGetReply extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["PriceLevelGetReply"]["1"] = "PriceLevelGetReply_ErrorNo";
    $this->values["1"] = "";
    self::$fieldNames["PriceLevelGetReply"]["1"] = "error_no";
    self::$fields["PriceLevelGetReply"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["PriceLevelGetReply"]["2"] = "error_msg";
    self::$fields["PriceLevelGetReply"]["3"] = "PriceLevel";
    $this->values["3"] = array();
    self::$fieldNames["PriceLevelGetReply"]["3"] = "price";
  }
  function error_no()
  {
    return $this->_get_value("1");
  }
  function set_error_no($value)
  {
    return $this->_set_value("1", $value);
  }
  function error_no_string()
  {
    return $this->values["1"]->get_description();
  }
  function error_msg()
  {
    return $this->_get_value("2");
  }
  function set_error_msg($value)
  {
    return $this->_set_value("2", $value);
  }
  function price($offset)
  {
    return $this->_get_arr_value("3", $offset);
  }
  function add_price()
  {
    return $this->_add_arr_value("3");
  }
  function set_price($index, $value)
  {
    $this->_set_arr_value("3", $index, $value);
  }
  function set_all_prices($values)
  {
    return $this->_set_arr_values("3", $values);
  }
  function remove_last_price()
  {
    $this->_remove_last_arr_value("3");
  }
  function prices_size()
  {
    return $this->_get_arr_size("3");
  }
  function get_prices()
  {
    return $this->_get_value("3");
  }
}
class ComicBookmark extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["ComicBookmark"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["ComicBookmark"]["1"] = "photo_id";
    self::$fields["ComicBookmark"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["ComicBookmark"]["2"] = "chapter_id";
    self::$fields["ComicBookmark"]["3"] = "PBInt";
    $this->values["3"] = "";
    self::$fieldNames["ComicBookmark"]["3"] = "chapter_index";
    self::$fields["ComicBookmark"]["4"] = "PBString";
    $this->values["4"] = "";
    self::$fieldNames["ComicBookmark"]["4"] = "chapter_name";
    self::$fields["ComicBookmark"]["5"] = "PBInt";
    $this->values["5"] = "";
    self::$fieldNames["ComicBookmark"]["5"] = "photo_index";
    self::$fields["ComicBookmark"]["6"] = "PBString";
    $this->values["6"] = "";
    self::$fieldNames["ComicBookmark"]["6"] = "comic_id";
  }
  function photo_id()
  {
    return $this->_get_value("1");
  }
  function set_photo_id($value)
  {
    return $this->_set_value("1", $value);
  }
  function chapter_id()
  {
    return $this->_get_value("2");
  }
  function set_chapter_id($value)
  {
    return $this->_set_value("2", $value);
  }
  function chapter_index()
  {
    return $this->_get_value("3");
  }
  function set_chapter_index($value)
  {
    return $this->_set_value("3", $value);
  }
  function chapter_name()
  {
    return $this->_get_value("4");
  }
  function set_chapter_name($value)
  {
    return $this->_set_value("4", $value);
  }
  function photo_index()
  {
    return $this->_get_value("5");
  }
  function set_photo_index($value)
  {
    return $this->_set_value("5", $value);
  }
  function comic_id()
  {
    return $this->_get_value("6");
  }
  function set_comic_id($value)
  {
    return $this->_set_value("6", $value);
  }
}
class ComicBookmarkManagementRequest_ManagementType extends PBEnum
{
  const SET_CHAPTER_BOOKMARK  = 0;
  const DELETE_CHAPTER_BOOKMARK  = 1;
  const GET_CHAPTER_BOOKMARK  = 2;
  const SET_COMIC_BOOKMARK  = 3;
  const GET_COMIC_BOOKMARK  = 4;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "SET_CHAPTER_BOOKMARK",
			1 => "DELETE_CHAPTER_BOOKMARK",
			2 => "GET_CHAPTER_BOOKMARK",
			3 => "SET_COMIC_BOOKMARK",
			4 => "GET_COMIC_BOOKMARK");
   }
}
class ComicBookmarkManagementRequest extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["ComicBookmarkManagementRequest"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["ComicBookmarkManagementRequest"]["1"] = "uid";
    self::$fields["ComicBookmarkManagementRequest"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["ComicBookmarkManagementRequest"]["2"] = "session_key";
    self::$fields["ComicBookmarkManagementRequest"]["3"] = "ComicBookmarkManagementRequest_ManagementType";
    $this->values["3"] = "";
    self::$fieldNames["ComicBookmarkManagementRequest"]["3"] = "type";
    self::$fields["ComicBookmarkManagementRequest"]["4"] = "ComicBookmark";
    $this->values["4"] = "";
    self::$fieldNames["ComicBookmarkManagementRequest"]["4"] = "bookmark";
    self::$fields["ComicBookmarkManagementRequest"]["5"] = "PBString";
    $this->values["5"] = "";
    self::$fieldNames["ComicBookmarkManagementRequest"]["5"] = "comic_id";
  }
  function uid()
  {
    return $this->_get_value("1");
  }
  function set_uid($value)
  {
    return $this->_set_value("1", $value);
  }
  function session_key()
  {
    return $this->_get_value("2");
  }
  function set_session_key($value)
  {
    return $this->_set_value("2", $value);
  }
  function type()
  {
    return $this->_get_value("3");
  }
  function set_type($value)
  {
    return $this->_set_value("3", $value);
  }
  function type_string()
  {
    return $this->values["3"]->get_description();
  }
  function bookmark()
  {
    return $this->_get_value("4");
  }
  function set_bookmark($value)
  {
    return $this->_set_value("4", $value);
  }
  function comic_id()
  {
    return $this->_get_value("5");
  }
  function set_comic_id($value)
  {
    return $this->_set_value("5", $value);
  }
}
class ComicBookmarkManagementReply_ErrorNo extends PBEnum
{
  const SUCCESS  = 1;
  const FAIL  = 2;
  const FAIL_AUTH  = 3;
  const NOT_EXIST  = 4;
  const EXISTED  = 5;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			1 => "SUCCESS",
			2 => "FAIL",
			3 => "FAIL_AUTH",
			4 => "NOT_EXIST",
			5 => "EXISTED");
   }
}
class ComicBookmarkManagementReply extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["ComicBookmarkManagementReply"]["1"] = "ComicBookmarkManagementReply_ErrorNo";
    $this->values["1"] = "";
    self::$fieldNames["ComicBookmarkManagementReply"]["1"] = "error_no";
    self::$fields["ComicBookmarkManagementReply"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["ComicBookmarkManagementReply"]["2"] = "error_msg";
    self::$fields["ComicBookmarkManagementReply"]["3"] = "ComicBookmark";
    $this->values["3"] = array();
    self::$fieldNames["ComicBookmarkManagementReply"]["3"] = "bookmarks";
  }
  function error_no()
  {
    return $this->_get_value("1");
  }
  function set_error_no($value)
  {
    return $this->_set_value("1", $value);
  }
  function error_no_string()
  {
    return $this->values["1"]->get_description();
  }
  function error_msg()
  {
    return $this->_get_value("2");
  }
  function set_error_msg($value)
  {
    return $this->_set_value("2", $value);
  }
  function bookmarks($offset)
  {
    return $this->_get_arr_value("3", $offset);
  }
  function add_bookmarks()
  {
    return $this->_add_arr_value("3");
  }
  function set_bookmarks($index, $value)
  {
    $this->_set_arr_value("3", $index, $value);
  }
  function set_all_bookmarkss($values)
  {
    return $this->_set_arr_values("3", $values);
  }
  function remove_last_bookmarks()
  {
    $this->_remove_last_arr_value("3");
  }
  function bookmarkss_size()
  {
    return $this->_get_arr_size("3");
  }
  function get_bookmarkss()
  {
    return $this->_get_value("3");
  }
}
class ServiceManagerRequest_ActionType extends PBEnum
{
  const CREATE  = 0;
  const UPDATE  = 1;
  const DELETE  = 2;
  const GET  = 3;
  const DETAIL  = 4;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "CREATE",
			1 => "UPDATE",
			2 => "DELETE",
			3 => "GET",
			4 => "DETAIL");
   }
}
class ServiceManagerRequest_SubscriptionItemType extends PBEnum
{
  const PACKAGE  = 0;
  const UNIT  = 1;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "PACKAGE",
			1 => "UNIT");
   }
}
class ServiceManagerRequest extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["ServiceManagerRequest"]["1"] = "ServiceManagerRequest_ActionType";
    $this->values["1"] = "";
    self::$fieldNames["ServiceManagerRequest"]["1"] = "action";
    self::$fields["ServiceManagerRequest"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["ServiceManagerRequest"]["2"] = "uid";
    self::$fields["ServiceManagerRequest"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["ServiceManagerRequest"]["3"] = "session_key";
    self::$fields["ServiceManagerRequest"]["6"] = "ServiceManagerRequest_SubscriptionItemType";
    $this->values["6"] = "";
    self::$fieldNames["ServiceManagerRequest"]["6"] = "subscription_item_type";
    self::$fields["ServiceManagerRequest"]["4"] = "PBBytes";
    $this->values["4"] = "";
    self::$fieldNames["ServiceManagerRequest"]["4"] = "item";
    self::$fields["ServiceManagerRequest"]["5"] = "PBString";
    $this->values["5"] = "";
    self::$fieldNames["ServiceManagerRequest"]["5"] = "subscription_id";
  }
  function action()
  {
    return $this->_get_value("1");
  }
  function set_action($value)
  {
    return $this->_set_value("1", $value);
  }
  function action_string()
  {
    return $this->values["1"]->get_description();
  }
  function uid()
  {
    return $this->_get_value("2");
  }
  function set_uid($value)
  {
    return $this->_set_value("2", $value);
  }
  function session_key()
  {
    return $this->_get_value("3");
  }
  function set_session_key($value)
  {
    return $this->_set_value("3", $value);
  }
  function subscription_item_type()
  {
    return $this->_get_value("6");
  }
  function set_subscription_item_type($value)
  {
    return $this->_set_value("6", $value);
  }
  function subscription_item_type_string()
  {
    return $this->values["6"]->get_description();
  }
  function item()
  {
    return $this->_get_value("4");
  }
  function set_item($value)
  {
    return $this->_set_value("4", $value);
  }
  function subscription_id()
  {
    return $this->_get_value("5");
  }
  function set_subscription_id($value)
  {
    return $this->_set_value("5", $value);
  }
}
class ServiceManagerReply_ErrorNo extends PBEnum
{
  const SUCCESS  = 1;
  const FAIL  = 2;
  const FAIL_AUTH  = 3;
  const NOT_EXIST  = 4;
  const EXISTED  = 5;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			1 => "SUCCESS",
			2 => "FAIL",
			3 => "FAIL_AUTH",
			4 => "NOT_EXIST",
			5 => "EXISTED");
   }
}
class ServiceManagerReply extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["ServiceManagerReply"]["1"] = "ServiceManagerReply_ErrorNo";
    $this->values["1"] = "";
    self::$fieldNames["ServiceManagerReply"]["1"] = "error_no";
    self::$fields["ServiceManagerReply"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["ServiceManagerReply"]["2"] = "error_msg";
    self::$fields["ServiceManagerReply"]["5"] = "PBString";
    $this->values["5"] = "";
    self::$fieldNames["ServiceManagerReply"]["5"] = "item_id";
    self::$fields["ServiceManagerReply"]["3"] = "SubscriptionPackage";
    $this->values["3"] = "";
    self::$fieldNames["ServiceManagerReply"]["3"] = "package_detail";
    self::$fields["ServiceManagerReply"]["4"] = "SubscriptionPackage";
    $this->values["4"] = array();
    self::$fieldNames["ServiceManagerReply"]["4"] = "package_list";
    self::$fields["ServiceManagerReply"]["6"] = "SubscriptionUnit";
    $this->values["6"] = "";
    self::$fieldNames["ServiceManagerReply"]["6"] = "unit_detail";
    self::$fields["ServiceManagerReply"]["7"] = "SubscriptionUnit";
    $this->values["7"] = array();
    self::$fieldNames["ServiceManagerReply"]["7"] = "unit_list";
  }
  function error_no()
  {
    return $this->_get_value("1");
  }
  function set_error_no($value)
  {
    return $this->_set_value("1", $value);
  }
  function error_no_string()
  {
    return $this->values["1"]->get_description();
  }
  function error_msg()
  {
    return $this->_get_value("2");
  }
  function set_error_msg($value)
  {
    return $this->_set_value("2", $value);
  }
  function item_id()
  {
    return $this->_get_value("5");
  }
  function set_item_id($value)
  {
    return $this->_set_value("5", $value);
  }
  function package_detail()
  {
    return $this->_get_value("3");
  }
  function set_package_detail($value)
  {
    return $this->_set_value("3", $value);
  }
  function package_list($offset)
  {
    return $this->_get_arr_value("4", $offset);
  }
  function add_package_list()
  {
    return $this->_add_arr_value("4");
  }
  function set_package_list($index, $value)
  {
    $this->_set_arr_value("4", $index, $value);
  }
  function set_all_package_lists($values)
  {
    return $this->_set_arr_values("4", $values);
  }
  function remove_last_package_list()
  {
    $this->_remove_last_arr_value("4");
  }
  function package_lists_size()
  {
    return $this->_get_arr_size("4");
  }
  function get_package_lists()
  {
    return $this->_get_value("4");
  }
  function unit_detail()
  {
    return $this->_get_value("6");
  }
  function set_unit_detail($value)
  {
    return $this->_set_value("6", $value);
  }
  function unit_list($offset)
  {
    return $this->_get_arr_value("7", $offset);
  }
  function add_unit_list()
  {
    return $this->_add_arr_value("7");
  }
  function set_unit_list($index, $value)
  {
    $this->_set_arr_value("7", $index, $value);
  }
  function set_all_unit_lists($values)
  {
    return $this->_set_arr_values("7", $values);
  }
  function remove_last_unit_list()
  {
    $this->_remove_last_arr_value("7");
  }
  function unit_lists_size()
  {
    return $this->_get_arr_size("7");
  }
  function get_unit_lists()
  {
    return $this->_get_value("7");
  }
}
class UserTicketRequest_Action extends PBEnum
{
  const LIST_GET  = 0;
  const DETAIL_GET  = 1;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "LIST_GET",
			1 => "DETAIL_GET");
   }
}
class UserTicketRequest extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["UserTicketRequest"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["UserTicketRequest"]["1"] = "uid";
    self::$fields["UserTicketRequest"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["UserTicketRequest"]["2"] = "session_key";
    self::$fields["UserTicketRequest"]["3"] = "UserTicketRequest_Action";
    $this->values["3"] = "";
    self::$fieldNames["UserTicketRequest"]["3"] = "request_action";
    self::$fields["UserTicketRequest"]["5"] = "PBString";
    $this->values["5"] = "";
    self::$fieldNames["UserTicketRequest"]["5"] = "action_id";
  }
  function uid()
  {
    return $this->_get_value("1");
  }
  function set_uid($value)
  {
    return $this->_set_value("1", $value);
  }
  function session_key()
  {
    return $this->_get_value("2");
  }
  function set_session_key($value)
  {
    return $this->_set_value("2", $value);
  }
  function request_action()
  {
    return $this->_get_value("3");
  }
  function set_request_action($value)
  {
    return $this->_set_value("3", $value);
  }
  function request_action_string()
  {
    return $this->values["3"]->get_description();
  }
  function action_id()
  {
    return $this->_get_value("5");
  }
  function set_action_id($value)
  {
    return $this->_set_value("5", $value);
  }
}
class UserTicketReply_ErrorNo extends PBEnum
{
  const SUCCESS  = 1;
  const FAIL  = 2;
  const FAIL_AUTH  = 3;
  const NOT_EXIST  = 4;
  const EXISTED  = 5;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			1 => "SUCCESS",
			2 => "FAIL",
			3 => "FAIL_AUTH",
			4 => "NOT_EXIST",
			5 => "EXISTED");
   }
}
class UserTicketReply extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["UserTicketReply"]["1"] = "UserTicketReply_ErrorNo";
    $this->values["1"] = "";
    self::$fieldNames["UserTicketReply"]["1"] = "error_no";
    self::$fields["UserTicketReply"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["UserTicketReply"]["2"] = "error_msg";
    self::$fields["UserTicketReply"]["3"] = "UserServiceTicket";
    $this->values["3"] = array();
    self::$fieldNames["UserTicketReply"]["3"] = "tickets";
    self::$fields["UserTicketReply"]["4"] = "UserServiceTicket";
    $this->values["4"] = "";
    self::$fieldNames["UserTicketReply"]["4"] = "ticket_details";
  }
  function error_no()
  {
    return $this->_get_value("1");
  }
  function set_error_no($value)
  {
    return $this->_set_value("1", $value);
  }
  function error_no_string()
  {
    return $this->values["1"]->get_description();
  }
  function error_msg()
  {
    return $this->_get_value("2");
  }
  function set_error_msg($value)
  {
    return $this->_set_value("2", $value);
  }
  function tickets($offset)
  {
    return $this->_get_arr_value("3", $offset);
  }
  function add_tickets()
  {
    return $this->_add_arr_value("3");
  }
  function set_tickets($index, $value)
  {
    $this->_set_arr_value("3", $index, $value);
  }
  function set_all_ticketss($values)
  {
    return $this->_set_arr_values("3", $values);
  }
  function remove_last_tickets()
  {
    $this->_remove_last_arr_value("3");
  }
  function ticketss_size()
  {
    return $this->_get_arr_size("3");
  }
  function get_ticketss()
  {
    return $this->_get_value("3");
  }
  function ticket_details()
  {
    return $this->_get_value("4");
  }
  function set_ticket_details($value)
  {
    return $this->_set_value("4", $value);
  }
}
class CrawlUriManagerRequest_Action extends PBEnum
{
  const CREATE  = 1;
  const UPDATE  = 2;
  const DELETE  = 3;
  const GET  = 4;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			1 => "CREATE",
			2 => "UPDATE",
			3 => "DELETE",
			4 => "GET");
   }
}
class CrawlUriManagerRequest extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["CrawlUriManagerRequest"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["CrawlUriManagerRequest"]["1"] = "uid";
    self::$fields["CrawlUriManagerRequest"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["CrawlUriManagerRequest"]["2"] = "session_key";
    self::$fields["CrawlUriManagerRequest"]["6"] = "CrawlUriManagerRequest_Action";
    $this->values["6"] = "";
    self::$fieldNames["CrawlUriManagerRequest"]["6"] = "action";
    self::$fields["CrawlUriManagerRequest"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["CrawlUriManagerRequest"]["3"] = "movie_id";
    self::$fields["CrawlUriManagerRequest"]["4"] = "PBString";
    $this->values["4"] = "";
    self::$fieldNames["CrawlUriManagerRequest"]["4"] = "cinema_id";
    self::$fields["CrawlUriManagerRequest"]["5"] = "CrawlUri";
    $this->values["5"] = array();
    self::$fieldNames["CrawlUriManagerRequest"]["5"] = "uris";
  }
  function uid()
  {
    return $this->_get_value("1");
  }
  function set_uid($value)
  {
    return $this->_set_value("1", $value);
  }
  function session_key()
  {
    return $this->_get_value("2");
  }
  function set_session_key($value)
  {
    return $this->_set_value("2", $value);
  }
  function action()
  {
    return $this->_get_value("6");
  }
  function set_action($value)
  {
    return $this->_set_value("6", $value);
  }
  function action_string()
  {
    return $this->values["6"]->get_description();
  }
  function movie_id()
  {
    return $this->_get_value("3");
  }
  function set_movie_id($value)
  {
    return $this->_set_value("3", $value);
  }
  function cinema_id()
  {
    return $this->_get_value("4");
  }
  function set_cinema_id($value)
  {
    return $this->_set_value("4", $value);
  }
  function uris($offset)
  {
    return $this->_get_arr_value("5", $offset);
  }
  function add_uris()
  {
    return $this->_add_arr_value("5");
  }
  function set_uris($index, $value)
  {
    $this->_set_arr_value("5", $index, $value);
  }
  function set_all_uriss($values)
  {
    return $this->_set_arr_values("5", $values);
  }
  function remove_last_uris()
  {
    $this->_remove_last_arr_value("5");
  }
  function uriss_size()
  {
    return $this->_get_arr_size("5");
  }
  function get_uriss()
  {
    return $this->_get_value("5");
  }
}
class CrawlUriManagerReply_ErrorNo extends PBEnum
{
  const SUCCESS  = 1;
  const FAIL  = 2;
  const FAIL_AUTH  = 3;
  const NOT_EXIST  = 4;
  const EXISTED  = 5;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			1 => "SUCCESS",
			2 => "FAIL",
			3 => "FAIL_AUTH",
			4 => "NOT_EXIST",
			5 => "EXISTED");
   }
}
class CrawlUriManagerReply extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["CrawlUriManagerReply"]["1"] = "CrawlUriManagerReply_ErrorNo";
    $this->values["1"] = "";
    self::$fieldNames["CrawlUriManagerReply"]["1"] = "error_no";
    self::$fields["CrawlUriManagerReply"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["CrawlUriManagerReply"]["2"] = "error_msg";
    self::$fields["CrawlUriManagerReply"]["3"] = "CrawlUri";
    $this->values["3"] = array();
    self::$fieldNames["CrawlUriManagerReply"]["3"] = "uris";
  }
  function error_no()
  {
    return $this->_get_value("1");
  }
  function set_error_no($value)
  {
    return $this->_set_value("1", $value);
  }
  function error_no_string()
  {
    return $this->values["1"]->get_description();
  }
  function error_msg()
  {
    return $this->_get_value("2");
  }
  function set_error_msg($value)
  {
    return $this->_set_value("2", $value);
  }
  function uris($offset)
  {
    return $this->_get_arr_value("3", $offset);
  }
  function add_uris()
  {
    return $this->_add_arr_value("3");
  }
  function set_uris($index, $value)
  {
    $this->_set_arr_value("3", $index, $value);
  }
  function set_all_uriss($values)
  {
    return $this->_set_arr_values("3", $values);
  }
  function remove_last_uris()
  {
    $this->_remove_last_arr_value("3");
  }
  function uriss_size()
  {
    return $this->_get_arr_size("3");
  }
  function get_uriss()
  {
    return $this->_get_value("3");
  }
}
class RelatedTagsGetRequest extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["RelatedTagsGetRequest"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["RelatedTagsGetRequest"]["1"] = "uid";
    self::$fields["RelatedTagsGetRequest"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["RelatedTagsGetRequest"]["2"] = "session_key";
    self::$fields["RelatedTagsGetRequest"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["RelatedTagsGetRequest"]["3"] = "tag_label";
    self::$fields["RelatedTagsGetRequest"]["4"] = "PBInt";
    $this->values["4"] = "";
    self::$fieldNames["RelatedTagsGetRequest"]["4"] = "num";
  }
  function uid()
  {
    return $this->_get_value("1");
  }
  function set_uid($value)
  {
    return $this->_set_value("1", $value);
  }
  function session_key()
  {
    return $this->_get_value("2");
  }
  function set_session_key($value)
  {
    return $this->_set_value("2", $value);
  }
  function tag_label()
  {
    return $this->_get_value("3");
  }
  function set_tag_label($value)
  {
    return $this->_set_value("3", $value);
  }
  function num()
  {
    return $this->_get_value("4");
  }
  function set_num($value)
  {
    return $this->_set_value("4", $value);
  }
}
class RelatedTagsGetReply_ErrorNo extends PBEnum
{
  const SUCCESS  = 1;
  const FAIL  = 2;
  const FAIL_AUTH  = 3;
  const NOT_EXIST  = 4;
  const EXISTED  = 5;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			1 => "SUCCESS",
			2 => "FAIL",
			3 => "FAIL_AUTH",
			4 => "NOT_EXIST",
			5 => "EXISTED");
   }
}
class RelatedTagsGetReply extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["RelatedTagsGetReply"]["1"] = "RelatedTagsGetReply_ErrorNo";
    $this->values["1"] = "";
    self::$fieldNames["RelatedTagsGetReply"]["1"] = "error_no";
    self::$fields["RelatedTagsGetReply"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["RelatedTagsGetReply"]["2"] = "error_msg";
    self::$fields["RelatedTagsGetReply"]["3"] = "PBString";
    $this->values["3"] = array();
    self::$fieldNames["RelatedTagsGetReply"]["3"] = "tag_labels";
  }
  function error_no()
  {
    return $this->_get_value("1");
  }
  function set_error_no($value)
  {
    return $this->_set_value("1", $value);
  }
  function error_no_string()
  {
    return $this->values["1"]->get_description();
  }
  function error_msg()
  {
    return $this->_get_value("2");
  }
  function set_error_msg($value)
  {
    return $this->_set_value("2", $value);
  }
  function tag_labels($offset)
  {
    $v = $this->_get_arr_value("3", $offset);
    return $v->get_value();
  }
  function append_tag_labels($value)
  {
    $v = $this->_add_arr_value("3");
    $v->set_value($value);
  }
  function set_tag_labels($index, $value)
  {
    $v = new self::$fields["RelatedTagsGetReply"]["3"]();
    $v->set_value($value);
    $this->_set_arr_value("3", $index, $v);
  }
  function remove_last_tag_labels()
  {
    $this->_remove_last_arr_value("3");
  }
  function tag_labelss_size()
  {
    return $this->_get_arr_size("3");
  }
  function get_tag_labelss()
  {
    return $this->_get_value("3");
  }
}
class ArticleExistanceCheckRequest extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["ArticleExistanceCheckRequest"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["ArticleExistanceCheckRequest"]["1"] = "uid";
    self::$fields["ArticleExistanceCheckRequest"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["ArticleExistanceCheckRequest"]["2"] = "session_key";
    self::$fields["ArticleExistanceCheckRequest"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["ArticleExistanceCheckRequest"]["3"] = "url";
  }
  function uid()
  {
    return $this->_get_value("1");
  }
  function set_uid($value)
  {
    return $this->_set_value("1", $value);
  }
  function session_key()
  {
    return $this->_get_value("2");
  }
  function set_session_key($value)
  {
    return $this->_set_value("2", $value);
  }
  function url()
  {
    return $this->_get_value("3");
  }
  function set_url($value)
  {
    return $this->_set_value("3", $value);
  }
}
class ArticleExistanceCheckReply_ErrorNo extends PBEnum
{
  const SUCCESS  = 1;
  const FAIL  = 2;
  const FAIL_AUTH  = 3;
  const NOT_EXIST  = 4;
  const EXISTED  = 5;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			1 => "SUCCESS",
			2 => "FAIL",
			3 => "FAIL_AUTH",
			4 => "NOT_EXIST",
			5 => "EXISTED");
   }
}
class ArticleExistanceCheckReply extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["ArticleExistanceCheckReply"]["1"] = "ArticleExistanceCheckReply_ErrorNo";
    $this->values["1"] = "";
    self::$fieldNames["ArticleExistanceCheckReply"]["1"] = "error_no";
    self::$fields["ArticleExistanceCheckReply"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["ArticleExistanceCheckReply"]["2"] = "error_msg";
    self::$fields["ArticleExistanceCheckReply"]["3"] = "Article";
    $this->values["3"] = "";
    self::$fieldNames["ArticleExistanceCheckReply"]["3"] = "article";
  }
  function error_no()
  {
    return $this->_get_value("1");
  }
  function set_error_no($value)
  {
    return $this->_set_value("1", $value);
  }
  function error_no_string()
  {
    return $this->values["1"]->get_description();
  }
  function error_msg()
  {
    return $this->_get_value("2");
  }
  function set_error_msg($value)
  {
    return $this->_set_value("2", $value);
  }
  function article()
  {
    return $this->_get_value("3");
  }
  function set_article($value)
  {
    return $this->_set_value("3", $value);
  }
}
class OpenGraphObjectGetRequest extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["OpenGraphObjectGetRequest"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["OpenGraphObjectGetRequest"]["1"] = "content_id";
  }
  function content_id()
  {
    return $this->_get_value("1");
  }
  function set_content_id($value)
  {
    return $this->_set_value("1", $value);
  }
}
class OpenGraphObjectGetReply_ErrorNo extends PBEnum
{
  const SUCCESS  = 0;
  const FAIL  = 1;
  const NOT_EXIST  = 2;
  const NOT_AVAILABLE  = 3;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "SUCCESS",
			1 => "FAIL",
			2 => "NOT_EXIST",
			3 => "NOT_AVAILABLE");
   }
}
class OpenGraphObjectGetReply extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["OpenGraphObjectGetReply"]["1"] = "OpenGraphObjectGetReply_ErrorNo";
    $this->values["1"] = "";
    self::$fieldNames["OpenGraphObjectGetReply"]["1"] = "error_no";
    self::$fields["OpenGraphObjectGetReply"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["OpenGraphObjectGetReply"]["2"] = "error_msg";
    self::$fields["OpenGraphObjectGetReply"]["3"] = "PBString";
    $this->values["3"] = array();
    self::$fieldNames["OpenGraphObjectGetReply"]["3"] = "meta";
  }
  function error_no()
  {
    return $this->_get_value("1");
  }
  function set_error_no($value)
  {
    return $this->_set_value("1", $value);
  }
  function error_no_string()
  {
    return $this->values["1"]->get_description();
  }
  function error_msg()
  {
    return $this->_get_value("2");
  }
  function set_error_msg($value)
  {
    return $this->_set_value("2", $value);
  }
  function meta($offset)
  {
    $v = $this->_get_arr_value("3", $offset);
    return $v->get_value();
  }
  function append_meta($value)
  {
    $v = $this->_add_arr_value("3");
    $v->set_value($value);
  }
  function set_meta($index, $value)
  {
    $v = new self::$fields["OpenGraphObjectGetReply"]["3"]();
    $v->set_value($value);
    $this->_set_arr_value("3", $index, $v);
  }
  function remove_last_meta()
  {
    $this->_remove_last_arr_value("3");
  }
  function metas_size()
  {
    return $this->_get_arr_size("3");
  }
  function get_metas()
  {
    return $this->_get_value("3");
  }
}
class TrendingByContentTypeRequest extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["TrendingByContentTypeRequest"]["1"] = "ItemType";
    $this->values["1"] = "";
    self::$fieldNames["TrendingByContentTypeRequest"]["1"] = "content_type";
    self::$fields["TrendingByContentTypeRequest"]["2"] = "PBBool";
    $this->values["2"] = "";
    self::$fieldNames["TrendingByContentTypeRequest"]["2"] = "refresh_list";
    self::$fields["TrendingByContentTypeRequest"]["3"] = "PBInt";
    $this->values["3"] = "";
    self::$fieldNames["TrendingByContentTypeRequest"]["3"] = "num";
  }
  function content_type()
  {
    return $this->_get_value("1");
  }
  function set_content_type($value)
  {
    return $this->_set_value("1", $value);
  }
  function content_type_string()
  {
    return $this->values["1"]->get_description();
  }
  function refresh_list()
  {
    return $this->_get_value("2");
  }
  function set_refresh_list($value)
  {
    return $this->_set_value("2", $value);
  }
  function num()
  {
    return $this->_get_value("3");
  }
  function set_num($value)
  {
    return $this->_set_value("3", $value);
  }
}
class TrendingByContentTypeReply_ErrorNo extends PBEnum
{
  const SUCCESS  = 0;
  const FAIL  = 1;
  const NOT_EXIST  = 2;
  const NOT_AVAILABLE  = 3;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "SUCCESS",
			1 => "FAIL",
			2 => "NOT_EXIST",
			3 => "NOT_AVAILABLE");
   }
}
class TrendingByContentTypeReply extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["TrendingByContentTypeReply"]["1"] = "TrendingByContentTypeReply_ErrorNo";
    $this->values["1"] = "";
    self::$fieldNames["TrendingByContentTypeReply"]["1"] = "error_no";
    self::$fields["TrendingByContentTypeReply"]["2"] = "PBString";
    $this->values["2"] = "";
    self::$fieldNames["TrendingByContentTypeReply"]["2"] = "error_msg";
    self::$fields["TrendingByContentTypeReply"]["3"] = "ItemResult";
    $this->values["3"] = array();
    self::$fieldNames["TrendingByContentTypeReply"]["3"] = "res";
  }
  function error_no()
  {
    return $this->_get_value("1");
  }
  function set_error_no($value)
  {
    return $this->_set_value("1", $value);
  }
  function error_no_string()
  {
    return $this->values["1"]->get_description();
  }
  function error_msg()
  {
    return $this->_get_value("2");
  }
  function set_error_msg($value)
  {
    return $this->_set_value("2", $value);
  }
  function res($offset)
  {
    return $this->_get_arr_value("3", $offset);
  }
  function add_res()
  {
    return $this->_add_arr_value("3");
  }
  function set_res($index, $value)
  {
    $this->_set_arr_value("3", $index, $value);
  }
  function set_all_ress($values)
  {
    return $this->_set_arr_values("3", $values);
  }
  function remove_last_res()
  {
    $this->_remove_last_arr_value("3");
  }
  function ress_size()
  {
    return $this->_get_arr_size("3");
  }
  function get_ress()
  {
    return $this->_get_value("3");
  }
}
?>